View Single Post
Old 03-04-2013, 04:17 PM   PM User | #3
mharrison
New Coder

 
Join Date: Dec 2012
Posts: 52
Thanks: 12
Thanked 0 Times in 0 Posts
mharrison is an unknown quantity at this point
Quote:
Originally Posted by Old Pedant View Post
Simpler than that:

INSERT IGNORE ...

That's all you need. Don't need the ON DUPLICATE KEY stuff if you just want to ignore the duplication error.

Once again, thank you. Followup question. Is there a way to have the query let me know which records it did not insert due to being duplicates. Not really important, just more curiosity on my part.
mharrison is offline   Reply With Quote