Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 17 » SQL Anywhere Server - SQL Reference » SQL statements » Alphabetical list of SQL statements

ROLLBACK TO SAVEPOINT statement

Cancels any changes made since a SAVEPOINT.

Syntax
ROLLBACK TO SAVEPOINT [ savepoint-name ]
Remarks

The ROLLBACK TO SAVEPOINT statement will undo any changes that have been made since the SAVEPOINT was established. Changes made before the SAVEPOINT are not undone; they are still pending.

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.

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

Privileges

None.

Side effects

None.

Standards
  • ANSI/ISO SQL Standard

    ROLLBACK TO SAVEPOINT is part of optional ANSI/ISO SQL Language Feature T271.