sql server 2008如何设置外码

日期:2019-10-23 18:08:35 人气:1

sql server 2008如何设置外码

用关键语句:foreign key ...(属性名) references ....表名+(属性名) 下边举例说明: create table Student /*建立一个学生表*/ Sno char(8), Sname char(6) unique not null default 'wang', Ssex char(2) check(Ssex='男'or Ssex='女') not null, Sage smallint not null
    A+
热门评论