Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT Balance FROM Accounts WHERE AccountID = 2;
- START TRANSACTION;
- UPDATE Accounts SET Balance = Balance - 1500 WHERE AccountID = 2;
- INSERT INTO Transactions (AccountID, TransactionType, Amount, TransactionDate)
- VALUES (2, 'Withdrawal', 1500, NOW());
- COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment