Created
October 10, 2021 12:58
-
-
Save MartinThoma/438ace8f7b3727fcec37c90cd6620d49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start transaction isolation level read committed; | |
SELECT * FROM balances; | |
id | balance | |
-------+--------- | |
Alice | 500 | |
Bob | 500 | |
(2 rows) | |
INSERT INTO | |
balances | |
(id, balance) | |
VALUES | |
('Charlie', 500); | |
# SELECT * FROM balances; | |
id | balance | |
---------+--------- | |
Alice | 500 | |
Bob | 500 | |
Charlie | 500 | |
(3 rows) | |
END; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment