I have searched other answers and tried them, but no luck. Here is what I get: Error
SQL query:
ALTER TABLE `watching` ADD FOREIGN KEY ( `anime_Score` )
REFERENCES `anime_15-12-2015`.`score` (`Score_ID`);
MySQL said: Documentation
1452 - Cannot add or update a child row: a foreign key constraint fails (
anime_15-12-2015/#sql-fdc_14a
, CONSTRAINT#sql-fdc_14a_ibfk_2
FOREIGN KEY (anime_Score
) REFERENCESscore
(Score_ID
))
Basicly I have a database called anime_15-12-2015 and in that database I have 3 tables: watching, type and score. I was able to add foreign key to type but no luck with score... If you need more info, reply what and I'll answer as soon as I can.
Thanx to everyone that tries to help me!