sqlite3_last_insert_rowidΒΆ

sqlite3_last_insert_rowid returns the integer primary key of the last INSERT command.

rowid = sqlite3_last_insert_rowid(db)

Return Value

rowid is a integer primary key of the last INSERT command.

Parameters

db

db is a handle returned by sqlite3_open.

History

Version

Description

5.5.0

New.

See also

Overview SQLite

id-1898456