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
相關文章
相關標籤/搜索