mysql set last_insert_id
snippet in sql

mysql set last_insert_id

user6012

SET @last_id = LAST_INSERT_ID();