I've the dump of a table of a database and I have to transfer the rows on a table with the same structure on a new database. On the new table there are already some rows so I've to insert the new values only if the primary key is not already present. As database I'm using Oracle 11.6.
...
INSERT INTO TABLE1 (KEY, FIELD1, FIELD2) VALUES ('1111111','aaa','xxx');
INSERT INTO TABLE1 (KEY, FIELD1, FIELD2) VALUES ('2222222','bbb','yyy');
INSERT INTO TABLE1 (KEY, FIELD1, FIELD2) VALUES ('3333333','ccc','zzz');
...
If the key '2222222' is already in the database how can I avoid to have an error from the execution of the query?
Thank you