SELECT LAST_INSERT_ID() will return the last value assigned by the auto_increment function.
Note : You don’t have to specify the table name.
MySQL Interview Questions and Answers
SELECT LAST_INSERT_ID() will return the last value assigned by the auto_increment function.
Note : You don’t have to specify the table name.