By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
2 rows affected
1 rows affected
ERROR: duplicate key value violates unique constraint "test1_pkey"
DETAIL: Key (id)=(1) already exists.
| id | col |
|---|---|
| 1 | 0 |
2 rows affected
| id | col |
|---|---|
| 1 | 1 |
| 2 | 2 |