MySQL Forums
Forum List  »  Connector/C++

Mysql connector c++ 8.0. How to do INSERT IGNORE?
Posted by: Andrew Klossner
Date: August 11, 2020 05:09PM

I want to do the equivalent of INSERT IGNORE to a table with a UNIQUE constraint. I can't find a way to do this with the C++ connector, so I've fallen back to capturing the Error and checking to see whether its string begins "CDK Error: Duplicate ". Is there a better way?

Options: ReplyQuote


Subject
Views
Written By
Posted
Mysql connector c++ 8.0. How to do INSERT IGNORE?
517
August 11, 2020 05:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.