MySQL Forums
Forum List  »  MyISAM

Re: LAST_INSERT_ID() AND UPDATE STATEMENTS
Posted by: KimSeong Loh
Date: May 27, 2007 03:03AM

last_insert_id() is generated from an INSERT statement, for the auto_increment value.

There is no last_insert_id when you run an UPDATE statement. UPDATE does not affect auto_increment value.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: LAST_INSERT_ID() AND UPDATE STATEMENTS
4761
May 27, 2007 03:03AM


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.