Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: DBI insert: Need to retrieve an autoincremented column from a table after an insert.by Jenda (Abbot) |
on Aug 09, 2008 at 18:27 UTC ( [id://703309]=note: print w/replies, xml ) | Need Help?? |
I would be very surprised if you found a database where the last_insert_id is not session specific. That is you always get YOUR last inserted id. You can test it by a script that'd make two connections, insert one row by each connection and then looked at the last_insert_id() for each connection.
In Section
Seekers of Perl Wisdom
|
|