.\\" auto-generated by docbook2man-spec $Revision: 1.25 $
.TH "ABORT" "" "29 March 2001" "SQL - Language Statements" "SQL Commands"
.SH NAME
ABORT \- Aborts the current transaction
.SH SYNOPSIS
.sp
.nf
ABORT [ WORK | TRANSACTION ]
  
.sp
.fi
.SS "INPUTS"
.PP
None.
.SS "OUTPUTS"
.PP
.TP
\fBROLLBACK\fR
Message returned if successful.
.TP
\fBNOTICE: ROLLBACK: no transaction in progress\fR
If there is not any transaction currently in progress.
.PP
.SH "DESCRIPTION"
.PP
\fBABORT\fR 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 SQL92 command \fBROLLBACK\fR,
and is present only for historical reasons.
.SS "NOTES"
.PP
Use \fBCOMMIT\fR to successfully
terminate a transaction.
.SH "USAGE"
.PP
To abort all changes:
.sp
.nf
ABORT WORK;
   
.sp
.fi
.SH "COMPATIBILITY"
.SS "SQL92"
.PP
This command is a Postgres extension present
for historical reasons. \fBROLLBACK\fR is the SQL92
equivalent command.
