Contents Aster SQL and Function Reference

Add to My manuals
228 Pages

advertisement

Contents Aster SQL and Function Reference | Manualzz

ROLLBACK Aster Data proprietary and confidential

ROLLBACK

ROLLBACK -- abort the current transaction

Synopsis

ROLLBACK [ WORK | TRANSACTION ];

Description

ROLLBACK rolls back the current transaction and causes all the updates made by the transaction to be discarded. This command is identical in behavior to the Aster Database command ABORT .

Parameters

WORK or TRANSACTION Optional keywords. They have no effect.

Notes

Use

COMMIT

to successfully terminate a transaction.

Issuing

ROLLBACK

when not inside a transaction does no harm.

Examples

To abort all changes:

ROLLBACK;

Compatibility

The SQL standard only specifies the two forms ROLLBACK and ROLLBACK WORK . Otherwise, this command is fully conforming.

See Also

To initiate a transaction:

BEGIN (page V-18)

START TRANSACTION (page V-87)

To finish a transaction:

COMMIT (page V-22)

END (page V-56)

To cancel a transaction:

ABORT (page V-6)

V--74 Database SQL and Function Reference, version 4.6.2

aster data

advertisement

advertisement

Table of contents