简体   繁体   English

MySQL 错误:1452

[英]MySQL error:1452

    Error Code: 1452. Cannot add or update a child row:

 a foreign key constraint fails
(`test`.`system_review`, CONSTRAINT `system_review_ibfk_1` FOREIGN KEY (`SYS_USER_ID`) REFERENCES `user_details` (`USER_ID`))

Help me to solve this error帮我解决这个错误

Possibly you have set Relationship between your two tables.可能您已经在两个表之间设置了关系。 And you are trying to update base record id, which is used by your child table.并且您正在尝试更新子表使用的基本记录 ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM