Retrieving autoincrement field from SQLite using DBI

S

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?
 
J

J. Gleixner

Steve said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top