Lecture notes |
Pdf slides |
|
Lecture notes |
Pdf slides |
|
Lecture notes |
Pdf slides |
|
Lecture notes |
Pdf slides |
|
Lecture notes |
Pdf slides |
|
Lecture notes |
Pdf slides |
|
Lecture notes |
Pdf slides |
|
|
|
|
|
|
|
|
|
|
|
|
BEGIN; -- start a transaction
UPDATE accounts -- deduct 1000 from account 1
SET balance = balance - 1000
WHERE id = 1;
UPDATE accounts -- add 1000 to account 2
SET balance = balance + 1000
WHERE id = 2;
COMMIT; -- commit the transaction
|
|
|
|