COMMIT statement 

A COMMIT statement terminates the current transaction and starts a new one (see transactions).

Syntax

<commit_statement> ::= COMMIT [WORK] [KEEP <lock_statement>]

lock_statement

Explanation

The commit statement terminates the current transaction. This means that the modifications executed within the transaction are recorded and are thus visible to concurrent users as well.

The COMMIT 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.

LOCK statement

The LOCK statement must not contain a WAIT option.