日期:2014-05-18 浏览次数:20550 次
create table Student( cStudentNo char(12) not null, vStudentName varchar(8) not null, iSage smallint check(iSage>=0 and iSage <=100), nSgender nchar(2) check (nSgender in('男','女')), cClass char(10) , vDepartment varchar(20) default '计算机系', primary key (cStudentNo), )
------解决方案--------------------
create table Student( cStudentNo char(12) not null, vStudentName varchar(8) not null, iSage smallint check(iSage>=0 and iSage <=100), nSgender nchar(2) check (nSgender in('男','女')), cClass char(10) , vDepartment varchar(20) default '计算机系', primary key (cStudentNo))