Oracle7 Server SQL Reference

Contents Index Home Previous Next

SAVEPOINT (Embedded SQL)

Purpose

To identify a point in a transaction to which you can later roll back.

Prerequisites

None.

Syntax

Keywords and Parameters

AT

identifies the database on which the savepoint is created. The database can be identified by either:

db_name is a database identifier declared in a previous DECLARE DATABASE statement.

:host_variable is a host variable whose value is a previously declared db_name.

If you omit this clause, the savepoint is created on your default database.

savepoint

is the name of the savepoint to be created.

Usage Notes

For more information on this command, see Programmer's Guide to the Oracle Precompilers.

Example

This example illustrates the use of the embedded SQL SAVEPOINT command:

EXEC SQL SAVEPOINT save3 

Related Topics

COMMIT command [*] ROLLBACK command [*] SAVEPOINT command [*]


Contents Index Home Previous Next