Skip to content

Instantly share code, notes, and snippets.

@shivamka1
Created October 12, 2025 18:24
Show Gist options
  • Select an option

  • Save shivamka1/93f42395f1564bad8625a80282028d3e to your computer and use it in GitHub Desktop.

Select an option

Save shivamka1/93f42395f1564bad8625a80282028d3e to your computer and use it in GitHub Desktop.
BEGIN;
UPDATE accounts SET balance = balance - 100 WHERE user_id = 1;
UPDATE accounts SET balance = balance + 100 WHERE user_id = 2;
COMMIT;

Comments are disabled for this gist.