How to log specific queries

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I've got this DB.  Every few minutes new data comes in and is inserted.

Now and then for some reason duplicate data comes through - not a big
problem - unique key.  However I'd like to log the insert failures, due
to dupes, but I don't want to log all of the good inserts also.

What magic words do I need?  Thanks

Site Timeline