LAST_INSERT_ID « Information Functions « MySQL Tutorial






20.10.LAST_INSERT_ID
20.10.1.LAST_INSERT_ID() returns the first automatically generated value set for an AUTO_INCREMENT column
20.10.2.LAST_INSERT_ID(expr)