HI,
How do we find out which auto increment was assigned on the last insert into the table ?
Auto increment
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 4, 2011, 7:07 PM EST
Please explain your problem with more points.
Arjun PanwarRank #254 · 9.9K reputationPosted Dec 4, 2011, 9:17 PM EST
my problem is same -
In mysql, How do you find out which auto-increment was assigned on the last insert?
with the use of autoincrement function.
VulpesRank #55 · 29.2K reputationPosted Dec 5, 2011, 12:31 AM EST
SELECT MAX(autoId) FROM tablename
Satish BhatRank #2,496 · 563 reputationPosted Dec 5, 2011, 2:14 AM EST
MySQL - How to Get the Unique ID for the Last Inserted Row