MySQL Forums
Forum List  »  Connector/Python

What auto-inc value was used?
Posted by: Aaron Robinson
Date: May 08, 2007 09:17PM

Hi All,

I'm using MySQLdb to insert a row into a table with an auto-inc ID field - I want to make use of the auto-inc feature, but can't figure out how to retrieve the value of 'ID' which has been assigned after the row has been inserted..

To do another SELECT to find out seems stupid, and the ID is the only thing making the new row unique anyway :-/


Options: ReplyQuote

Written By
What auto-inc value was used?
May 08, 2007 09:17PM

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.