1ROLLBACK()                       SQL Commands                       ROLLBACK()
2
3
4

NAME

6       ROLLBACK - abort the current transaction
7
8

SYNOPSIS

10       ROLLBACK [ WORK | TRANSACTION ]
11
12

DESCRIPTION

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

PARAMETERS

18       WORK
19
20       TRANSACTION
21              Optional key words. They have no effect.
22

NOTES

24       Use COMMIT [commit(7)] to successfully terminate a transaction.
25
26       Issuing ROLLBACK when not inside a transaction does  no  harm,  but  it
27       will provoke a warning message.
28

EXAMPLES

30       To abort all changes:
31
32       ROLLBACK;
33
34

COMPATIBILITY

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

SEE ALSO

40       BEGIN [begin(7)], COMMIT  [commit(l)],  ROLLBACK  TO  SAVEPOINT  [roll‐
41       back_to_savepoint(l)]
42
43
44
45SQL - Language Statements         2008-06-08                        ROLLBACK()
Impressum