Greetings fellow monks,
In order to retrieve the ID number for something I've just inserted into a MySQL table, I've been using the following query:
"SELECT LAST_INSERT_ID() FROM table"
Which has been working well and fine while I'm testing, but I've been wondering: if there are a lot of simultaneous actions, and another row is inserted before the above statement is called, which ID is returned? Is it the ID for the last insert from that specific database connection, or is it the global last ID?
Thanks,
Spidy