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
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.