As the Christian said, sqlite3_last_insert_rowid()
this is what you want ... but it is a C-level API, and you are using Python DB-API bindings for SQLite.
, lastrowid
, ( "lastrowid" ), cursor.execute( ... )
, - lastid = cursor.lastrowid
, .
, "ID", , ... , ID? , B -, , , B.