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.
android 以太網和wifi共存
2.
沒那麼神祕,三分鐘學會人工智能
3.
k8s 如何 Failover?- 每天5分鐘玩轉 Docker 容器技術(127)
4.
安裝mysql時一直卡在starting the server這一位置,解決方案
5.
秋招總結指南之「性能調優」:MySQL+Tomcat+JVM,還怕面試官的轟炸?
6.
布隆過濾器瞭解
7.
深入lambda表達式,從入門到放棄
8.
中間件-Nginx從入門到放棄。
9.
BAT必備500道面試題:設計模式+開源框架+併發編程+微服務等免費領取!
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
>>更多相關文章<<