Problem deleting a table field

0

When I try to delete a row from my table, it returns me this error

ERROR: update or delete on table "menu" violates foreign key constraint "fk_menu_id" on table "view_menu" DETAIL: Key (menu_id)=(2370) is still referenced from table "view_menu".

What would it be?

    
asked by anonymous 19.10.2016 / 13:18

1 answer

1

The error is saying that the line in question has linked information in the view_menu table, first delete the one that is bound in the view_menu table so you can delete it from the menu table

    
19.10.2016 / 13:23