Imported upstream version 1.5
[manpages-zh.git] / raw / man7 / rollback.7
blob50e664f88c0ac0685e465f264ce4734dc26e3f1e
1 .\\" auto-generated by docbook2man-spec $Revision: 1.1 $
2 .TH "ROLLBACK" "7" "2003-11-02" "SQL - Language Statements" "SQL Commands"
3 .SH NAME
4 ROLLBACK \- abort the current transaction
6 .SH SYNOPSIS
7 .sp
8 .nf
9 ROLLBACK [ WORK | TRANSACTION ]
10 .sp
11 .fi
12 .SH "DESCRIPTION"
13 .PP
14 \fBROLLBACK\fR rolls back the current transaction and causes
15 all the updates made by the transaction to be discarded.
16 .SH "PARAMETERS"
17 .TP
18 \fBWORK\fR
19 .TP
20 \fBTRANSACTION\fR
21 Optional key words. They have no effect.
22 .SH "NOTES"
23 .PP
24 Use COMMIT [\fBcommit\fR(7)] to
25 successfully terminate a transaction.
26 .PP
27 Issuing \fBROLLBACK\fR when not inside a transaction does
28 no harm, but it will provoke a warning message.
29 .SH "EXAMPLES"
30 .PP
31 To abort all changes:
32 .sp
33 .nf
34 ROLLBACK;
35 .sp
36 .fi
37 .SH "COMPATIBILITY"
38 .PP
39 The SQL standard only specifies the two forms
40 ROLLBACK and ROLLBACK
41 WORK. Otherwise, this command is fully conforming.
42 .SH "SEE ALSO"
43 BEGIN [\fBbegin\fR(7)], COMMIT [\fBcommit\fR(l)]