Retrieving autoincrement field from SQLite using DBI

When you use DBI to add a new record to a SQLite table, for which the
primary key column uses AUTOINCREMENT, is there a way to retrieve what
was the ID value generated for the record you just added?
Steve [ Sa, 12 Januar 2008 00:20 ] [ ID #1905806 ]

Re: Retrieving autoincrement field from SQLite using DBI

Steve wrote:
> When you use DBI to add a new record to a SQLite table, for which
> the primary key column uses AUTOINCREMENT, is there a way to retrieve
> what was the ID value generated for the record you just added?

last_insert_id() didn't work?
glex_no-spam [ Sa, 12 Januar 2008 00:34 ] [ ID #1905808 ]
Perl » comp.lang.perl.misc » Retrieving autoincrement field from SQLite using DBI

Vorheriges Thema: FAQ 8.9 How do I ask the user for a password?
Nächstes Thema: Question about arrays of hashes