This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the
version, or one of the other supported versions listed above instead.
NameROLLBACK — Aborts the current transaction
ROLLBACK [ WORK | TRANSACTION ]
Message returned if successful.
- NOTICE: ROLLBACK: no
transaction in progress
If there is not any transaction currently in
ROLLBACK rolls back the current
transaction and causes all the updates made by the transaction to
Use COMMIT to successfully
terminate a transaction. ABORT is a synonym for
To abort all changes:
SQL92 only specifies the two
forms ROLLBACK and ROLLBACK WORK. Otherwise full compatibility.