級聯刪除報Cannot delete or update a parent row: a foreign key constraint fails解決方法

表的級聯沒有添加ON DELETE CASCADE ON UPDATE CASCADE ;在刪除主表時會報Cannot delete or update a parent row: a foreign key constraint fails 原來的結構是CONSTRAINT `FK_cgqbhur8b7r95m7o126opuyrf` FOREIGN KEY (`park_id`) REFERE
相關文章
相關標籤/搜索