SQL server 多个字段设为主键
create table teacher_course(
ton char(8) not null,
classno char(8) not null,
con char(4) not null primary key(ton,classno,con),
semester char(6),
schoolyear char(10),
classtime varchar(40),
classroom varchar(40)
);
create table 表名 (
字段1,
字段2,
字段3 int primary key(字段1,字段2,字段3),
字段4,
字段5
...
)