I want to do an INSERT SELECT query like this:
INSERT INTO `tableName` (SELECT * FROM `anotherTable`)
The problem is when it finds a duplicate
Use INSERT IGNORE
INSERT IGNORE INTO `tableName` (SELECT * FROM `anotherTable`)