(3) 学生表基本信息的建立 Create table 学生表
( Sno char(10) primary key, Sname char(10) not null, Ssex char(2) not null, Saddr char(10) not null, Sage smallint not null, Smajor char(10) not null, Cno char(10) , )
(4) 课程表基本信息的建立 Create table 课程表
( Courceno char(10) primary key, Courcename char(10) not null, Ccredit smallint not null, Courcedirector char(8), )
(5) 选课表基本信息的建立 Create table 选课表 ( Sno char(10) ,
Courceno char(10), Grade char(10) not null, )
(6) 教室表基本信息的建立 Create table 教室表
( Rno char(10) primary key, Rname char(10) not null, Raddr char(10) not null, )
(7) 占用表基本信息的建立 Create table 占用表 ( Cno char(10), Rno char(10), Stime datetime, Uestime char(10) , )