Retrieving autoincrement field from SQLite using DBI

Retrieving autoincrement field from SQLite using DBI

am 12.01.2008 00:20:03 von Steve

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?

Re: Retrieving autoincrement field from SQLite using DBI

am 12.01.2008 00:34:34 von glex_no-spam

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?