Posts by João Leonel Ferreira • 1 point
1 post
-
0
votes5
answers1137
viewsA: Postgresql - Remove tuple referenced by another table
I would do everything in one table, using a field called filhode with a foreign key for the table id itself. I even use this to make menus. See an example: CREATE TABLE menu ( idmenu serial NOT…