Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

Mysql connector c++ 8.0. How to do INSERT IGNORE? (no replies)

$
0
0
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?

Viewing all articles
Browse latest Browse all 527

Trending Articles