Php – Why there is a difference between PDO::lastInsertId and Mysql's LAST_INSERT_ID() behavior?
My current development environment is PHP 7.2. This is MariaDB 10.3.11. When using PDO's lastInsertId function, if you run another query after the insert query, the lastInsertId result value will always be 0. example table is create table test (…