Get last MySQL AUTO_INCREMENT ID
// http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html
SELECT LAST_INSERT_ID();
DZone Snippets > AUTO_INCREMENT
11390 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
SELECT LAST_INSERT_ID();