Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Perl DBI and Foreign Keysby Marshall (Canon) |
on Apr 08, 2019 at 10:05 UTC ( [id://1232286]=note: print w/replies, xml ) | Need Help?? |
Thanks! I wanted to hear from somebody who had used this function. My target DB's are MySQL and SQLite. If I have code that works with both of those DB's, I'm fine. It appears that last_insert_id will work with both of these DB's. I did consider the write, then read back to get the auto id, but that is rather goofy sounding and may not be possible in certain situations. I'm starting a new project using SQlite. The DB access is just a tiny part, but an important part.
In Section
Seekers of Perl Wisdom
|
|