SQL语句练习
create table student( Sno char(7) primary key, Sname char(10) not null, Ssex char(2), Sage tinyint, Sdept char(20) ) create table Course( Cno char(10) not null, Cname char(20) not null, Ccredit tinyint, Semester tinyint, primary key(Cno) ) create table SC ( Sno char(7) not null, Cno char(10) not null, Grade tinyint, XKLB char(4), primary key(Sno,Cno), FOREIGN KEY (Sno) REFERENCES Student (Sno), FOREIGN KEY (Cno) REFERENCES Course(Cno) ) alter table SC ADD XKLB char(4) NULL alter table SC alter COLUMN XKLB char(6) alter table Course drop column Period alter table 雇员 add CONSTRAINT PK_EMP