6、,约束名为UN_inno。二.程序及运行结果(或实验数据记录及分析)l针对S_T数据库:1)创建三个表:student course sc。 程序: use S_T go /*创建Student表*/ create table student( Sno char(5) primary key not null check(Sno like '[0-9][0-9][0-9][0-9][0-9]'), Sname char(20) not null, Ssex char(2) not null check(Ssex in ('男','女')),S
7、age smallint not null check(Sage between 14 and 38), Sdept char(20) not null ); /*创建Course表*/ create table course( Cno char(4) not null primary key check(Cno like '[0-9][0-9][0-9][0-9]'), Cname char(40) not null, Cpno char(4), Ccredit smallint not null ); /*创建SC表*/ create
8、table sc( Sno char(5) not null , Cno char(4) not null, Grade