学生——选课表 //学生表 
 Create Table Student (   
Sno CHAR(10) primary key,  
 Sname CHAR(10) not  null,   
Ssex  CHAR(2),  
 Sage INT,    
Sdept Varchar(10)
 ) //课程表 
 Create Table Course (   
Cno CHAR(4)  primary key,  
 CName CHAR(20)   not  null,  
 Cpno CHAR(4)  ,   
Ccredit INT   
)   //选课表
  Create  TABLE SC (   
Sno  CHAR(10)  not  null,  
 Cno CHAR(4)  not  null,  
 Grade INT,   
 Primary key(Sno,Cno),   
 Foreign key (Sno) references Student(Sno),  
 Foreign key (Cno) references Course(Cno) 
)