mysql 添加外键约束报错 1452

今天为一张表的字段添加一个外键约束: ALTER TABLE `gjp`.`gjp$contacts` ADD CONSTRAINT `FK_city_contact` FOREIGN KEY (`city_id` ) REFERENCES `gjp`.`gjp$cities` (`city_id` ) ON DELETE NO ACTION ON UPDATE NO ACTION , ADD I
相关文章
相关标签/搜索