I have a table with the following
1 idssMembers int(11) No None AUTO_INCREMENT Change Change Drop Drop
2 ssName varchar(45) utf8_general_ci
I want to make a foreign key on another table in the memberId column which is:
6 memberId int(11) Yes NULL
But I keep getting 2 different kinds of error messages. First I get:
#1452 - Cannot add or update a child row: a foreign key constraint fails (`inter-design_net_01`.<result 2 when explaining filename '#sql-548_6e50d1'>, CONSTRAINT `memberId` FOREIGN KEY (`memberId`) REFERENCES `ssmembers` (`idssMembers`) ON DELETE CASCADE ON UPDATE C)
the other one says something about check data types. I can't reproduce that error at the moment for the exact wording. everything is indexed and both have int(11) so I can't figure out what the probem is. if you need more details please let me know.