Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Marshall (Canon)
on Mar 25, 2021 at 21:07 UTC ( [id://11130341]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11130341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-23 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found