Cannot add or update a child row: a foreign key constraint fails mysql報:1452

今天給表中的數據創建外鍵時,一直報 Cannot add or update a child row: a foreign key constraint fails (company.userinfo, CONSTRAINT afsfasd FOREIGN KEY (ded) REFERENCES detail (ded)) 這是因爲你在創建 外鍵時,表中已經有了數據,並且兩個表中的外鍵不一致,我
相關文章
相關標籤/搜索