By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version |
|---|
| PostgreSQL 12.14 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-16), 64-bit |
SELECT 1
CREATE TABLE
INSERT 0 2
| user_id | first_name | last_name | display_name |
|---|---|---|---|
| 1 | George | Anderson | George Anderson |
| 2 | Paul | McCartney | Paul McCartney |
SELECT 2
UPDATE 1
| user_id | first_name | last_name | display_name |
|---|---|---|---|
| 2 | Paul | McCartney | Paul McCartney |
| 1 | George | Harrison | George Harrison |
SELECT 2