永发信息网

T-sql关于外键约束的提问

答案:1  悬赏:60  手机版
解决时间 2021-03-24 07:20
  • 提问者网友:城市野鹿
  • 2021-03-23 19:37
T-sql关于外键约束的提问
最佳答案
  • 五星知识达人网友:西岸风
  • 2021-03-23 20:24
alter table student add constraint FK_student_classid foreign key(classid) references class(classid)
alter table stuGou add constraint FK_stuGou_stuId foreign key(stuId) references student(stuId)
alter table stuGou add constraint FK_stuGou_DepartmentId foreign key(DepartmentId) references Department(DepartmentId)
alter table class add constraint FK_class_DepartmentId foreign key(DepartmentId) references Department(DepartmentId)追问。。。不对我的题目吧
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯