Returns the key value generated by the last insert statement (e.g. SQLite's ROWID) on this connection
Source position: msqldb.pas line 315
public function tcustomsqlconnection.getinsertid( |
const atransaction: TSQLTransaction |
):Int64; virtual; |
Returns the key value generated by the last insert statement (e.g. SQLite's ROWID) on this connection — call it right after the executedirect/execute of that statement, before running another statement.