11.6CURRENT_TRANSACTION

Available inDSQL, PSQL

TypeBIGINT

Syntax

  |CURRENT_TRANSACTION

CURRENT_TRANSACTION contains the unique identifier of the current transaction.

Its value is derived from a counter on the database header page, which is incremented for each new transaction. When a database is restored, this counter is reset to zero.

Examples

  |select current_transaction from rdb$database
  | 
  |New.Txn_ID = current_transaction;