JavaShuo
栏目
标签
ERROR 1217 (23000) at line 730: Cannot delete or update a parent row: a foreign key constraint fails
时间 2020-05-21
标签
error
line
delete
update
parent
row
foreign
key
constraint
fails
繁體版
原文
原文链接
MySQL库中有俩表,table1和table2,相互关联,在删除表的时候出错: 很明显这是表关联生成的强制约束问题,在删除的时候回检查表之间的关联关系,从而致使没法删除。mysql 解决办法:web SET foreign_key_checks = 0; // 先设置外键约束检查关闭 drop table table1; // 删除表,若是要删除视图,也是如此 SET foreign
>>阅读原文<<
相关文章
1.
Mysql Reference Constraint -ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key
2.
MySQL Cannot delete or update a parent row: a foreign key constraint fails
3.
关于mysql中[Err] 1451 -Cannot delete or update a parent row: a foreign key constraint fails
4.
[Err] 1452-Cannot add or update a child row: a foreign key constraint fails(......)
5.
数据库报错Cannot delete or update a parent row: a foreign key constraint fails
6.
MySQL错误号1451-Cannot delete or update a parent row: a foreign key constraint fails
7.
ERROR 1452 : Cannot add or update a child row: a foreign key constraint fails
8.
Cannot add or update a child row: a foreign key constraint fails 解决办法
9.
Error Code: 1452 Cannot add or update a child row: a foreign key constraint fails
10.
Cannot add or update a child row: a foreign key constraint fails mysql报:1452
更多相关文章...
•
SQL FOREIGN KEY 约束
-
SQL 教程
•
MySQL外键约束(FOREIGN KEY)
-
MySQL教程
•
三篇文章了解 TiDB 技术内幕 —— 说计算
•
漫谈MySQL的锁机制
相关标签/搜索
a'+'a
a+aa+aaa+a...a
update&delete
a+aa+aaa+...+aa..a
row
fails
constraint
parent
Redis教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
字节跳动21届秋招运营两轮面试经验分享
2.
Java 3 年,25K 多吗?
3.
mysql安装部署
4.
web前端开发中父链和子链方式实现通信
5.
3.1.6 spark体系之分布式计算-scala编程-scala中trait特性
6.
dataframe2
7.
ThinkFree在线
8.
在线画图
9.
devtools热部署
10.
编译和链接
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Mysql Reference Constraint -ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key
2.
MySQL Cannot delete or update a parent row: a foreign key constraint fails
3.
关于mysql中[Err] 1451 -Cannot delete or update a parent row: a foreign key constraint fails
4.
[Err] 1452-Cannot add or update a child row: a foreign key constraint fails(......)
5.
数据库报错Cannot delete or update a parent row: a foreign key constraint fails
6.
MySQL错误号1451-Cannot delete or update a parent row: a foreign key constraint fails
7.
ERROR 1452 : Cannot add or update a child row: a foreign key constraint fails
8.
Cannot add or update a child row: a foreign key constraint fails 解决办法
9.
Error Code: 1452 Cannot add or update a child row: a foreign key constraint fails
10.
Cannot add or update a child row: a foreign key constraint fails mysql报:1452
>>更多相关文章<<