Backs out any changes made to the database by the current transaction on the current connection.
Syntax:
>>---EXEC SQL---ROLLBACK----.-WORK---------.------------->
+-TRAN---------+
+-TRANSACTION--+
>---.-----------.---END-EXEC---><
+--RELEASE--+
Example:
EXEC SQL
ROLLBACK
END-EXEC
EXEC SQL
ROLLBACK WORK RELEASE
END-EXEC
Comment:
If RELEASE is specified and the transaction was successfully rolled back, the current connection is closed.