txid_current()

Returns the current transaction’s ID (a BIGINT). It will assign a new one if the current transaction does not have one already

Reference: DuckDB 2.0.0

Arguments & returns

txid_current()

Scalar
Overload link Returns
#01 UBIGINT

Example

txid_current example
SQL
Haybarn WASM 2.0.0-rc12 · In your browser

Engine example · Run to view results.