create table score( sno varchar(20) not null,#学号(外码) cno varchar(20) not null,#课程号(外码) degree decimal(4,1),#成绩 primary key(sno,cno),#联合主键 foreign key(sno) references student(sno),#外键引用student表的snc列 foreign key(cno) references course(cno)#外键引用course表的cno列 )