I have 2 tables (srcTable1 & destTable) that have identical schemas. I am trying to copy all rows from srcTable to destTable and ignore the duplicates. I thought I could
I hope this query will help you
INSERT INTO `dTable` (`field1`, `field2`) SELECT field1, field2 FROM `sTable` WHERE `sTable`.`field1` NOT IN (SELECT `field1` FROM `dTable`)