DZone 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

Snippets has posted 5883 posts at DZone. View Full User Profile

Get Last MySQL AUTO_INCREMENT ID

03.08.2006
| 29811 views |
  • submit to reddit
        // Get last MySQL AUTO_INCREMENT ID
// http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html

SELECT LAST_INSERT_ID();