PDA

View Full Version : How to select a last inserted record in mysql?



zoobave
February 6th, 2008, 05:09 PM
How to select a last inserted record in mysql?

lnostdal
February 6th, 2008, 05:17 PM
you want LAST_INSERT_ID() .. http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_last-insert-id