ROLLBACK
Undo changes in the current transaction. This statement reverts the database to its state before the transaction started or to a specific savepoint.
ROLLBACK [ WORK ] [ AND [ NO ] CHAIN ]
[ TO [ SAVEPOINT ] {<savepoint name> | <simple target specification>} ]ROLLBACK;
ROLLBACK WORK;
ROLLBACK AND NO CHAIN;
ROLLBACK WORK AND NO CHAIN;ROLLBACK AND CHAIN;
ROLLBACK WORK AND CHAIN;INSERT INTO Table_2 VALUES(5);
DROP TABLE Table_3 CASCADE;
ROLLBACK;Last updated
Was this helpful?

