What is Transaction?
A group of writes that all succeed together or not at all.
A unit of work executed as one all-or-nothing operation. Classic example: transferring money debits one account and credits another — if the second write fails, the first rolls back so money doesn't vanish.
BEGIN; UPDATE …; UPDATE …; COMMIT;