Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DECLARE @amount decimal(18,2) = 1000
- UPDATE account
- SET balance = balance + @amount WHERE accountID= 1;
- UPDATE account
- SET balance = balance - @amount WHERE accountID= 2;
- DECLARE @amount decimal(18,2) = 1000
- UPDATE account
- SET balance = balance + @amount WHERE accountID= 1;
- AND
- SET balance = balance - @amount WHERE accountID= 2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement