Discussion board
How do you find out which auto increment was assigned on the last insert?
By Arun Desai
How do you find out which auto increment was assigned on the last insert????
Reply
Post   Reset
Teacher SiliconIndia replied to Arun Desai Thursday, March 18, 2010
Hi Arun,
SELECT LAST_INSERT_ID() will return the last value assigned by the auto_increment function. Note that you don't have to specify the table name.