Bogus foreign key constraint fail

前端 未结 9 1324
南笙
南笙 2020-11-28 01:52

I get this error message:

ERROR 1217 (23000) at line 40: Cannot delete or update a parent row: a foreign key constraint fails

<
9条回答
  •  没有蜡笔的小新
    2020-11-28 02:25

    Maybe you received an error when working with this table before. You can rename the table and try to remove it again.

    ALTER TABLE `area` RENAME TO `area2`;
    DROP TABLE IF EXISTS `area2`;
    

提交回复
热议问题