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
yet another "where not exists"-variant using dual...
insert into t1(id, unique_name) select t1_seq.nextval, 'Franz-Xaver' from dual where not exists (select 1 from t1 where unique_name = 'Franz-Xaver');