【发布时间】:2012-12-23 22:08:26
【问题描述】:
我尝试了所有方法来截断表格,但我总是收到相同的信息:
Cannot delete or update a parent row: a foreign key constraint fails (`mybdd`.`c_member`, CONSTRAINT `fk_cm_c_id` FOREIGN KEY (`c_id`) REFERENCES `comment` (`c_id`))
在这个网站上看一些帖子我试过这个:
更改表comment
添加约束 c_member 外键 (c_id)
参考comment (c_id);
但它不起作用:
无法创建表 'mybdd.#sql-2ee0_3769864' (errno: 150){"success":false,"error":"
1005 - 无法创建表 'sameditrbdd.#sql-2ee0_3769864' (errno: 150)
我该怎么做?