SQL - Transactions and Data Integrity
Given this SQL code:
What happens if the UPDATE statement fails?
BEGIN TRANSACTION; UPDATE accounts SET balance = balance - 50 WHERE id = 1; COMMIT;
What happens if the UPDATE statement fails?
