get last increment id in MySql

May 1, 2009
Filed under: Featured, MySql, MySql 5.0, MySQL 5.1 

In Mysql we can get last increment id or inserted Id by using the following query

 




SELECT LAST_INSERT_ID()

 

Comments

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!





*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image