Learned a trick or two from this MySQL Cheat Sheet.
MySQL cheat-sheet
Reply
Learned a trick or two from this MySQL Cheat Sheet.
There is a MySQL function to return the auto-increment ID of the last inserted ID and that is LAST_INSERT_ID. You can also read about Using AUTO_INCREMENT.