创建时:
create table sc (
studentno int,
courseid int,
score int,
primary key (studentno,courseid) );
修改时:
alter table tb_name add primary key (字段1,字段2,字段3);
创建时:
create table sc (
studentno int,
courseid int,
score int,
primary key (studentno,courseid) );
修改时:
alter table tb_name add primary key (字段1,字段2,字段3);