热门

最新

红包

立Flag

投票

同城

我的

发布
chenyuxi123456
你会看到世界
5 年前
truechenyuxi123456

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。
是因为设了两个主键还是其他什么原因啊?

CSDN App 扫码分享
分享
3
1
打赏
  • 复制链接
  • 举报
下一条:
我这该怎么改啊,求大佬教教我
立即登录