SAVEPOINT

Function

SAVEPOINT establishes a new savepoint within the current transaction.

A savepoint is a special mark inside a transaction that rolls back all commands that are executed after the savepoint was established, restoring the transaction state to what it was at the time of the savepoint.

Precautions

Syntax

1
SAVEPOINT savepoint_name;

Parameter Description

savepoint_name

Specifies the name of a new savepoint.

Examples

Helpful Links

RELEASE SAVEPOINT, ROLLBACK TO SAVEPOINT