MySQL Forums
Forum List  »  Stored Procedures

Getting INSERTed valued of serial field
Posted by: Ross Rankin
Date: July 07, 2005 06:57AM

I thought I saw this answered somewhere but I cannot find the post, not sure why it's not popping in the search engine...

Anyway, I do an INSERT to a table which the primary key is a auto_increment column, how do I get the value of this column after the INSERT? Informix had a function DBINFO("sqlca.sqlerrd1") which would return this value. Anything similar in MySQL?

Options: ReplyQuote


Subject
Views
Written By
Posted
Getting INSERTed valued of serial field
4980
July 07, 2005 06:57AM


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.