-
You get it via
SELECT LAST_INSERT_ID();
or via having your framework/MySQL library (in whatever language) callmysql_insert_id()
. -
That won’t work. There you have to query the IDs after inserting.
You get it via SELECT LAST_INSERT_ID();
or via having your framework/MySQL library (in whatever language) call mysql_insert_id()
.
That won’t work. There you have to query the IDs after inserting.