JavaShuo
栏目
标签
MySQL Cannot delete or update a parent row: a foreign key constraint fails
时间 2020-12-26
标签
MySQL
数据库
栏目
MySQL
繁體版
原文
原文链接
在学习数据库时,数据库中有些table想要删除,但在删除时报错,如下图, 想要删除表中的customers,orderitems,orders,productnotes,products,vendors等tables,结果报错 报错是因为这几个表之间是有联系的,某个表的主键,可能是另一个表中的外键,所以执行以下操作 设置SET FOREIGN_KEY_CHECKS = 0; 然后就可以删除了,删除
>>阅读原文<<
相关文章
1.
Mysql Reference Constraint -ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key
2.
关于mysql中[Err] 1451 -Cannot delete or update a parent row: a foreign key constraint fails
3.
MySQL错误号1451-Cannot delete or update a parent row: a foreign key constraint fails
4.
ERROR 1217 (23000) at line 730: Cannot delete or update a parent row: a foreign key constraint fails
5.
数据库报错Cannot delete or update a parent row: a foreign key constraint fails
6.
Cannot add or update a child row: a foreign key constraint fails mysql报:1452
7.
ERROR 1452 : Cannot add or update a child row: a foreign key constraint fails
8.
1452-Cannot add or update a child row: a foreign key constraint fails
9.
Cannot add or update a child row: a foreign key constraint fails 解决办法
10.
Error Code: 1452 Cannot add or update a child row: a foreign key constraint fails
更多相关文章...
•
MySQL外键约束(FOREIGN KEY)
-
MySQL教程
•
SQL FOREIGN KEY 约束
-
SQL 教程
•
漫谈MySQL的锁机制
•
三篇文章了解 TiDB 技术内幕 —— 说计算
相关标签/搜索
a'+'a
a+aa+aaa+a...a
update&delete
a+aa+aaa+...+aa..a
row
fails
constraint
parent
foreign
MySQL
SQL
MySQL教程
Redis教程
mysql
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
Appium入门
2.
Spring WebFlux 源码分析(2)-Netty 服务器启动服务流程 --TBD
3.
wxpython入门第六步(高级组件)
4.
CentOS7.5安装SVN和可视化管理工具iF.SVNAdmin
5.
jedis 3.0.1中JedisPoolConfig对象缺少setMaxIdle、setMaxWaitMillis等方法,问题记录
6.
一步一图一代码,一定要让你真正彻底明白红黑树
7.
2018-04-12—(重点)源码角度分析Handler运行原理
8.
Spring AOP源码详细解析
9.
Spring Cloud(1)
10.
python简单爬去油价信息发送到公众号
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Mysql Reference Constraint -ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key
2.
关于mysql中[Err] 1451 -Cannot delete or update a parent row: a foreign key constraint fails
3.
MySQL错误号1451-Cannot delete or update a parent row: a foreign key constraint fails
4.
ERROR 1217 (23000) at line 730: Cannot delete or update a parent row: a foreign key constraint fails
5.
数据库报错Cannot delete or update a parent row: a foreign key constraint fails
6.
Cannot add or update a child row: a foreign key constraint fails mysql报:1452
7.
ERROR 1452 : Cannot add or update a child row: a foreign key constraint fails
8.
1452-Cannot add or update a child row: a foreign key constraint fails
9.
Cannot add or update a child row: a foreign key constraint fails 解决办法
10.
Error Code: 1452 Cannot add or update a child row: a foreign key constraint fails
>>更多相关文章<<