Background documentationROLLBACK Statement (rollback_statement) Locate this document in the navigation structure

 

The ROLLBACK statement (rollback_statement) cancels the current transaction (ROLLBACK) and starts a new transaction.

Structure

Syntax Syntax

  1. <rollback_statement> ::=
      ROLLBACK [WORK]
End of the code.
Explanation

The ROLLBACK statement implicitly opens a new transaction. Any locks set within the new transaction are assigned to this transaction. The setting of locks in the new transaction is controlled by the isolation level defined in the CONNECT statement.

More Information

Glossary, ROLLBACK