MySQL Forums
Forum List  »  Connector/C++

How can I get the auto generated key after insert?
Posted by: bai yongrui
Date: August 16, 2012 12:45AM

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!

Options: ReplyQuote


Subject
Views
Written By
Posted
How can I get the auto generated key after insert?
2171
August 16, 2012 12:45AM


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.