Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: last_insert_id did not work

by mr_ron (Chaplain)
on Mar 27, 2021 at 12:37 UTC ( #11130464=note: print w/replies, xml ) Need Help??


in reply to Re: last_insert_id did not work
in thread last_insert_id did not work

I am trying this right now: $sth->{mysql_insertid};
then later message:
I just realized, I used a code for reading a database table... lol. $sth->fetchrow_hashref();
From DBI docs ... DBI#last_insert_id
* For some drivers the value may only available immediately after the insert statement has executed (e.g., mysql, Informix).

Ron

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2022-12-03 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?