By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version |
|---|
| PostgreSQL 15.18 (Debian 15.18-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit |
SELECT 1
CREATE TABLE
INSERT 0 2
CREATE TABLE
INSERT 0 2
MERGE 2
| id | qty |
|---|---|
| 1 | 10 |
| 2 | 25 |
| 3 | 7 |
SELECT 3