in reply to Re^2: Inserting into mysql and getting inserted id at the same time
in thread Inserting into mysql and getting inserted id at the same time
I didn't say it wouldn't work for MySQL, I said it wouldn't work for DBD::mysql. You can use both the Perl modules for both the databases. But DBD::MariaDB mentions "last_insert_id" as a function of both the database handle and the statement handle, but DBD::mysql only mentions $dbh->{'mysql_insertid'};. See also the Changes of the former and search for "insert_id" to see what's been fixed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Inserting into mysql and getting inserted id at the same time
by Marshall (Canon) on Mar 25, 2021 at 21:07 UTC |