日期:2014-05-16 浏览次数:20860 次
create table TEACHERINFO3(
teacherid char(15) not null primary key,
teachername varchar(10) not null,
teacherbirthday varchar(20),
teachersex VARCHAR(4) not null default '男' CHECK(teachersex IN ('男','女')), --这个地方,如果可以使用bit 类型比较方便;另外,性别,请使用英文单词 gender。
teacherschool VARchar(20),
teachertech varchar(20),
teacheraddress varchar(20),
teacherindate varchar(20),
teacherduty varchar(16),
teacherdepartment VARCHAR(4),
Foreign key(teacherdepartment) references departmentinfo(DEPARTMENTID), --这个地方
)