ALTER TABLE `fd_rel_customer_doctor`
ADD CONSTRAINT `FK_fd_rel_customer_doctor_1` FOREIGN KEY (`CUSTOMER_USER_ID`) REFERENCES `fd_customer_user` (`CUSTOMER_USER_ID`),
ADD CONSTRAINT `FK_fd_rel_customer_doctor_2` FOREIGN KEY (`DOCTOR_ID`) REFERENCES `fd_doctor` (`DOCTOR_ID`);
相关文章
- 10-17外键删除(T-SQL Drop Foreign Key)
- 10-17组合外键(FOREIGN KEY)
- 10-17外键添加失败:java.sql.SQLException: Cannot add or update a child row: a foreign key constraint fails
- 10-17workbench添加不了外键Cannot add or update a child row: a foreign key constraint fails原因
- 10-17code first 添加外键时,与原有的数据冲突ALTER TABLE 语句与 FOREIGN KEY 约束"FK_XXXXX"冲突
- 10-17SQL2005学习(三十四),外键约束 Foreign Key
- 10-17外键删除(T-SQL Drop Foreign Key)
- 10-17MySQL数据库之-foreign key 外键(一对多、多对多、一对一)、修改表、复制表
- 10-17删除带外键的表【foreign key constraint fails】报错
- 10-17MySQL8.0数据库出现的问题——外码创建方式、外键约束两个引用列不兼容问题、check约束问题、用触发器代替check约束、关键字DELIMITER、删除添加索引、删除添加外键约束、和一些数据库方面的操作