mysql求助
有没有大佬帮忙看一下
我创建一个表,和另外两个表进行关联
create table sc
(
sno char(10) not null primary key,
cno char(3) not null primary key,
score smallint,
foreign key(sno) references sinfo(sno),
foreign key(cno) references c(cno)
);
出现了报错:ERROR 1068 (42000): Multiple primary key defined。
是因为设了两个主键还是其他什么原因啊?