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

How can I get the auto generated key after insert? (no replies)

$
0
0
Hello

I want to get the auto generated key after insert,I found there is one overloaded function in connection.h for prepareStatement.

PreparedStatement * prepareStatement(const sql::SQLString& sql, int autoGeneratedKeys) = 0;

But how can I use it to return key?
Thanks and regards!

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>