PostgreSQL - Transactions and Concurrency
You execute this PostgreSQL code:
What value does the second SELECT return?
BEGIN;
UPDATE wallets SET amount = amount - 50 WHERE id = 2;
SELECT amount FROM wallets WHERE id = 2;
ROLLBACK;
SELECT amount FROM wallets WHERE id = 2;What value does the second SELECT return?
