Quantcast
Channel: identity
Viewing all articles
Browse latest Browse all 10

SQLite: How to get the “autoincrement” value from the last insert

$
0
0

SQLite: How to get the “autoincrement” value from the last insert

SQLite autoincrement FAQ: How do I get the autoincrement value from my last SQLite INSERT command?

You can get the integer value of the primary key field from the last insert into an autoincrement field using a SQLite function named last_insert_rowid(), as shown in the example below.


Viewing all articles
Browse latest Browse all 10

Trending Articles