Back to Yugabyte Db

ROLLBACK statement [YSQL]

docs/content/v2.25/api/ysql/the-sql-language/statements/txn_rollback.md

2026.1.0.0-b25475 B
Original Source

Synopsis

Use the ROLLBACK statement to roll back the current transactions. All changes included in this transactions will be discarded.

Syntax

{{%ebnf%}} rollback {{%/ebnf%}}

Semantics

rollback

ROLLBACK [ TRANSACTION | WORK ]

WORK

Add optional keyword — has no effect.

TRANSACTION

Add optional keyword — has no effect.

See also