Seth Woolley's Man Viewer

rollback(7) - ROLLBACK - abort the current transaction - man 7 rollback

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

ROLLBACK(7)                      SQL Commands                      ROLLBACK(7)



NAME
       ROLLBACK - abort(3,7) 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.

PARAMETERS
       WORK

       TRANSACTION
              Optional key words. They have no effect.

NOTES
       Use COMMIT [commit(7)] to successfully terminate a transaction.

       Issuing ROLLBACK when not inside a transaction does  no  harm,  but  it
       will provoke a warning message.

EXAMPLES
       To abort(3,7) all changes:

       ROLLBACK;


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

SEE ALSO
       BEGIN [begin(7)], COMMIT [commit(l)]




SQL - Language Statements         2003-11-02                       ROLLBACK(7)

References for this manual (incoming links)