I want to merge two tables, but not the duplicate entries with similar id field.
But I get error after:
INSERT INTO table1 (id, name)
SELECT id, name FROM table2 WHERE table2.id NOT_IN (SELECT id FROM table1);
I want to merge two tables, but not the duplicate entries with similar id field.
But I get error after:
INSERT INTO table1 (id, name)
SELECT id, name FROM table2 WHERE table2.id NOT_IN (SELECT id FROM table1);