Cette page n'est pas encore disponible dans votre langue. Nous nous efforçons d'ajouter d'autres langues. Nous vous remercions de votre compréhension.

ROLLBACK

Updated on 2024-12-19 GMT+08:00

Function

Rolls back the current transaction and backs out all updates in the transaction.

ROLLBACK backs out of all changes that a transaction makes to a database if the transaction fails to be executed due to a fault.

Precautions

If a ROLLBACK statement is executed out of a transaction, no error occurs, but a warning information is displayed.

Syntax

1
ROLLBACK [ WORK | TRANSACTION ];

Parameter Description

WORK | TRANSACTION

Optional keyword that more clearly illustrates the syntax.

Examples

Undo all changes in the current transaction:

1
ROLLBACK;

Helpful Links

COMMIT | END

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback