ABORT
ABORT — Abort the Current Transaction
Synopsis
ABORT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]
Description
ABORT rolls back the current transaction and causes all updates made by the transaction to be discarded. This command has the same behavior as the standard SQL command ROLLBACK.
Parameters
WORK, TRANSACTION
Optional keywords. They have no effect.
AND CHAIN
If AND CHAIN is specified, a new transaction is immediately started with the same transaction characteristics as the just-finished transaction (see SET TRANSACTION). Otherwise, no new transaction is started.
Notes
Use COMMIT to successfully terminate a transaction.
Issuing ABORT outside a transaction block emits a warning message and has no effect.
Examples
Abort all changes:
ABORT;