This is the sample query:
INSERT INTO CUSTOMERS (ID, NAME, AGE, SALARY, ADDRESS)
VALUES (1, 'Paul', 30, '1550.00', 'Ahmedabad')
`if ID matches`
then i want to UPDATE the table
NAME='Paul', AGE=30,SALARY='1550.00',
ADDRESS='Ahmedabad'
ID
is the unique index column in the table.
I want to insert a new row if id does not match and if id matched then update the rest of the column.