且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将行添加到外键后我无法删除行

更新时间:2023-11-30 23:38:10

您将必须删除third表中具有second_id = 2的行,然后从second中删除id = 2或具有在外键约束中

You will have to delete the rows in third table with second_id = 2 and then delete the rows from second with id = 2 or have ON DELETE CASCADE in the foreign key constraint