COMMIT permanently saves the changes made by a transaction.
BEGIN;
UPDATE Accounts
SET balance = balance - 1000
WHERE account_id = 1;
COMMIT;COMMIT permanently saves the changes made by a transaction.
BEGIN;
UPDATE Accounts
SET balance = balance - 1000
WHERE account_id = 1;
COMMIT;