I have the following SQL query:
IF EXISTS(SELECT * FROM component_psar WHERE tbl_id = \'2\' AND row_nr = \'1\') UPDATE component_psar SET col_1 = \
Here is the link to documentation INSERT ... ON DUPLICATE Statement.