add batch remove batch split batch show hidden batches hide batch
db<>fiddle
feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
2 rows affected
3 rows affected
id user_id content name
1 1 Alice Note 1 Alice
2 1 Alice Note 2 Alice
3 2 Bob Note Bob
ERROR:  update or delete on table "users" violates foreign key constraint "fk_user" on table "notes"
DETAIL:  Key (id)=(1) is still referenced from table "notes".