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)) 这是因为你在创建 外键时,表中已经有了数据,并且两个表中的外键不一致,我
相关文章
相关标签/搜索