No such thing as a small change | |
PerlMonks |
Re^4: Perl DBI and Foreign Keysby Marshall (Canon) |
on Apr 08, 2019 at 12:45 UTC ( [id://1232293]=note: print w/replies, xml ) | Need Help?? |
I don't think that would work as a substitute for last_insert_id due to race conditions with multiple writers. I can read a table. Calculate the number of rows. And wind up with a different number of rows than you read doing the same thing if somebody else inserted a row during this process.
In Section
Seekers of Perl Wisdom
|
|