COMMIT

Submit the current transaction.

Summary

COMMIT [WORK | TRANSACTION]

describe

COMMIT commits the current transaction. All changes made by the firm are visible to others and are guaranteed to be persistent if a crash occurs.

Parameters

WORK

TRANSACTION

  • Optional keywords. They have no effect.

Note

Use ROLLBACK to abort the transaction.

If not inside the transaction, issuing COMMIT will not cause any harm, but will trigger a warning message.

Example

Submit the current transaction and make all changes permanent:

COMMIT;

compatibility

The SQL standard specifies only two forms: COMMIT and COMMIT WORK. Otherwise, this command fully meets the requirements.

See also

BEGIN, END, START TRANSACTION, ROLLBACK