in reply to Re: Perl DBI and Foreign Keys
in thread Perl DBI and Foreign Keys
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 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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perl DBI and Foreign Keys
by hdb (Monsignor) on Apr 08, 2019 at 12:30 UTC | |
by Marshall (Canon) on Apr 08, 2019 at 12:45 UTC | |
by soonix (Canon) on Apr 08, 2019 at 12:55 UTC | |
by afoken (Chancellor) on Apr 09, 2019 at 23:24 UTC | |
Re^3: Perl DBI and Foreign Keys
by dsheroh (Monsignor) on Apr 09, 2019 at 07:29 UTC | |
Re^3: Perl DBI and Foreign Keys
by afoken (Chancellor) on Apr 09, 2019 at 18:37 UTC |
In Section
Seekers of Perl Wisdom