0

I need to insert dozens of rows, but my table has a unique key and some of the inserted rows might have the same unique key as existing rows in the table.

How can I safely instruct the database to only insert the rows that don't contain duplicate keys, and ignore the duplicates?

(I was thinking along the lines of INSERT ... WHERE NOT EXISTS ... but I don't think it's possible?)

Giffyguy
  • 17,946
  • 30
  • 81
  • 147

0 Answers0