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 = \
Use the following Statement:
IF EXISTS(SELECT * FROM prueba ) then UPDATE prueba SET nombre = '1', apellido = '1' WHERE cedula = 'ct' ELSE INSERT INTO prueba (cedula, nombre, apellido) VALUES ('ct', 'ct', 'ct');