I have the following SQL query: IF EXISTS(SELECT * FROM ... INSERT INTO component_psar (tbl_id, ...
stackoverflow.com