MySQL Forums
Forum List  »  Perl

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

Like I said, LAST_INSERT_ID() is session safe. That means that it will work if there are concurrent inserts by different sessions. If you insert more than one row before you select LAST_INSERT_ID(), you will only get the id of the last row inserted.

Options: ReplyQuote


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


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.