====== Transactions and Concurrency Control ====== ==== Using Transactions ==== START TRANSACTION; UPDATE accounts SET balance = balance - 100 WHERE id = 1; UPDATE accounts SET balance = balance + 100 WHERE id = 2; COMMIT; Ensures atomicity of multiple related updates. ==== Rolling Back Changes ==== START TRANSACTION; UPDATE accounts SET balance = balance - 100 WHERE id = 1; ROLLBACK; Reverts changes made in the transaction.