in reply to Re^3: Inserting into mysql and getting inserted id at the same time
in thread Inserting into mysql and getting inserted id at the same time

Thank you!

As I now understand it, DBD::mysql only does this on a per connection basis. The DBD::MariaDB driver can do it on a more refined basis, a per statement handle basis.

If the OP is using one DB connection in multiple threads, the DBD::mysql driver won't work.

  • Comment on Re^4: Inserting into mysql and getting inserted id at the same time