Pegasus InfoCorp: Web site design and web software development company

ROLLBACK (l)

Aborts the current transaction

SYNOPSIS

    ROLLBACK [ WORK | TRANSACTION ]
    

    None.

    ABORT

      Message returned if successful.

    NOTICE: UserAbortTransactionBlock and not in in-progress state

      If there is not any transaction currently in progress.

DESCRIPTION

    ROLLBACK rolls back the current transaction and causes all the updates made by the transaction to be discarded.

    The keywords WORK and TRANSACTION are noise and can be omitted.

    Use commit(l) to successfully terminate a transaction. abort(l) is a synonym for ROLLBACK.

USAGE

    To abort all changes:

    ROLLBACK WORK;
    

COMPATIBILITY

    Full compatibility. The TRANSACTION keyword is a Postgres extension.