Top "Lastinsertid" questions

LAST_INSERT_ID is MySQL specific functionality to get the value of the AUTO_INCREMENT column most recently inserted into.

PHP/MYSQL how to get last_insert_id in transaction

I have 2 MySQL tables table#1 - container: container_id INT (PK AI) start_time DATETIME table#2 - reservation reservation_id …

php mysql transactions lastinsertid
How to detect the last insert ID within a transaction in Yii using DAO?

That's the source code, I need to detect the ID (see the marked position between the two queries below). $connection = …

php yii transactions dao lastinsertid