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.
1.2 Illustrator多文檔的幾種排列方式
2.
5.16--java數據類型轉換及雜記
3.
性能指標
4.
(1.2)工廠模式之工廠方法模式
5.
Java記錄 -42- Java Collection
6.
Java記錄 -42- Java Collection
7.
github使用
8.
Android學習筆記(五十):聲明、請求和檢查許可
9.
20180626
10.
服務擴容可能引入的負面問題及解決方法
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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
>>更多相關文章<<