in reply to SELECT LAST_INSERT_ID does not work

From the docs

Important
If you insert multiple rows using a single INSERT statement, LAST_INSERT_ID() returns the value generated for the first inserted row only. The reason for this is to make it possible to reproduce easily the same INSERT statement against some other server.
poj
  • Comment on Re: SELECT LAST_INSERT_ID does not work