Unit 'msqldb' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#msegui]

tcustomsqlconnection.getinsertid

Returns the key value generated by the last insert statement (e.g. SQLite's ROWID) on this connection

Declaration

Source position: msqldb.pas line 315

public function tcustomsqlconnection.getinsertid(

  const atransaction: TSQLTransaction

):Int64; virtual;

Description

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.


Documentation generated on: 2026-10-03