ROLLBACK TO SAVEPOINT statement

Description

Cancels any changes made since a SAVEPOINT.

Syntax

ROLLBACK TO SAVEPOINT [ savepoint-name ]

Usage

Changes made prior to the SAVEPOINT are not undone; they are still pending. For a description of savepoints, see Chapter 8, “Using Procedures and Batches” in the Sybase IQ System Administration Guide.

The savepoint-name is an identifier that was specified on a SAVEPOINT statement within the current transaction. If savepoint-name is omitted, the most recent savepoint is used. Any savepoints since the named savepoint are automatically released.


Side effects

None.

Standards

Permissions

There must have been a corresponding SAVEPOINT within the current transaction.

See also

RELEASE SAVEPOINT statement

ROLLBACK statement

SAVEPOINT statement