Use the ROLLBACK command to abort the current transaction and roll back all changes it has made so far.
ROLLBACK [ WORK | TRANSACTION ]
| Input | Description |
|---|---|
| WORK | These are optional keywords that have no effect. |
| TRANSACTION |
The ROLLBACK command has the following outputs:
| Output | Description |
|---|---|
| ABORT | The command was successful. |
| NOTICE: rollback: no transaction in progress | There is no transaction in progress. |
You do not need any special privileges to issue this command.
MYDB.SCH1(USER)=> ROLLBACK WORK;