MySQL Forums
Forum List  »  Perl

Re: Help with mysql insert
Posted by: Randy Clamons
Date: June 01, 2007 01:45PM

You can't get the number in the same query as the insert, but you can get the id of the new row using "SELECT LAST_INSERT_ID() as newid". LAST_INSERT_ID() is session safe.

Options: ReplyQuote


Subject
Written By
Posted
Re: Help with mysql insert
June 01, 2007 01:45PM


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.