The ROLLBACK statement cancels the current transaction and starts a new transaction (see
transactions).Syntax
<rollback_statement> ::= ROLLBACK [WORK] [KEEP <lock_statement>]
lock_statementExplanation
The ROLLBACK statement cancels the current transaction. This means that any modifications made within the transaction are reversed.
The ROLLBACK statement implicitly opens a new transaction. Any locks set, either implicitly or explicitly, within the new transaction are assigned to this transaction. The isolation level specification declared in the
CONNECT statement controls the setting of locks in the new transaction.All result tables generated within the current transaction are implicitly deleted at the end of the transaction using the ROLLBACK statement.
LOCK statement
The
LOCK statement must not contain a WAIT option.