ROLLBACK

A statement that reverses a transaction's uncommitted changes.

What does ROLLBACK do in a relational database?

ROLLBACK — A statement that reverses a transaction's uncommitted changes.

START TRANSACTION;
DELETE FROM purchase_order
WHERE order_id = 10;
ROLLBACK;

Level: Journeyman · More Database terms at this level

Updated