GNU/Linux |
RedHat 6.2(Zoot) |
|
![]() |
rollback(l) |
![]() |
ROLLBACK − Aborts the current transaction
ROLLBACK [ WORK | TRANSACTION ]
INPUTS
None.
OUTPUTS
ABORT |
Message returned if successful. |
NOTICE: UserAbortTransactionBlock and not in in-progress state
If there is not any transaction currently in progress.
ROLLBACK rolls back the current transaction and causes all the updates made by the transaction to be discarded.
NOTES
The keywords WORK and TRANSACTION are noise and can be
omitted.
Use commit(l) to successfully terminate a transaction. abort(l) is a synonym for ROLLBACK.
To abort all changes:
ROLLBACK WORK;
SQL92
Full compatibility. The TRANSACTION keyword is a Postgres
extension.
![]() |
rollback(l) | ![]() |