PostgreSQL · Command
ROLLBACK
ROLLBACK cancels the current PostgreSQL transaction and discards its updates. Use AND CHAIN to start a new transaction with the same transaction settings.
Last updated
Syntax
ROLLBACK [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
BEGINCOMMITROLLBACK TO SAVEPOINTSET TRANSACTION