property
SQL.ResultMetadata.lastInsertRowid
lastInsertRowid: null | string | number | bigint
The key that an INSERT generated.
- PostgreSQL:
null. UseRETURNING. - MySQL: the first
AUTO_INCREMENTvalue of the statement,0if there is none. AboveNumber.MAX_SAFE_INTEGERit is a string, or aBigIntwithbigint: true. - SQLite: the
rowidof the last inserted row, also after a statement that inserts nothing.nullfor a statement that only reads. ABigIntwithsafeIntegers: trueorbigint: true.