PostgreSQL - Transactions and Concurrency
You wrote this code in PostgreSQL:
BEGIN; UPDATE accounts SET balance = balance - 100 WHERE id = 1; SELECT balance FROM accounts WHERE id = 1; COMMIT;But you notice the SELECT shows the updated balance even before COMMIT. Why?
