码迷,mamicode.com
首页 > 数据库 > 详细

mysql foreign key 外键

时间:2016-08-28 21:06:07      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:

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`);

mysql foreign key 外键

标签:

原文地址:http://www.cnblogs.com/galoishelley/p/5815830.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!