By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version |
|---|
| PostgreSQL 15.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10), 64-bit |
SELECT 1
CREATE TABLE
INSERT 0 2
| id | data |
|---|---|
| 1 | {} |
| 2 | {"notes": "Inserted"} |
SELECT 2
| ?column? |
|---|
| f |
| t |
SELECT 2
UPDATE 2
| id | data |
|---|---|
| 1 | {"notes": ["Add"]} |
| 2 | {"notes": ["Inserted", "Update"]} |
SELECT 2
| ?column? |
|---|
| t |
| t |
SELECT 2