in reply to Re^4: Perl DBI and Foreign Keys
in thread Perl DBI and Foreign Keys
You will see that the ScoreCard table winds up containing an extra field, "rowid" that I didn't specify in CREATE TABLE ScoreCard.That is SQLite specific, documented under https://sqlite.org/lang_createtable.html#rowid
Except for WITHOUT ROWID tables, all rows within SQLite tables have a 64-bit signed integer key that uniquely identifies the row within its table. …BTW SQLite's last_insert_rowid() documentation explicitly refers to "the database connection which invoked the function", so should work with multiple parallel insertions.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Perl DBI and Foreign Keys
by dsheroh (Monsignor) on Apr 09, 2019 at 07:27 UTC |