I need to update a query so that it checks that a duplicate entry does not exist before insertion. In MySQL I can just use INSERT IGNORE so that if a duplicate record is fo
A simple solution
insert into t1 select from t2 where not exists (select 1 from t1 where t1.id= t2.id)