报错了,好像跟外键有关
请教老师:
删除语句和数据库数据如下
结果报错了,好像跟外键有关系,这个这么解决啊?
Cannot delete or update a parent row: a foreign key constraint fails (`mp`.`user`, CONSTRAINT `manager_fk` FOREIGN KEY (`manager_id`) REFERENCES `user` (`id`))
请教老师:
删除语句和数据库数据如下
结果报错了,好像跟外键有关系,这个这么解决啊?
Cannot delete or update a parent row: a foreign key constraint fails (`mp`.`user`, CONSTRAINT `manager_fk` FOREIGN KEY (`manager_id`) REFERENCES `user` (`id`))
2019-07-25
举报