create table TBL_Member(
MemberName varchar(30) primary key,
No int primary key,
TeamID varchar(5) primary key foreign key,
Position varchar(20) not null,
stature float not null,
weight float not null,
Birth datetime not null,
ServeYear int not null
)
请问错在哪?
2个主码 必须是表级完整性约束......
MemberName varchar(30) ,
TeamID varchar(5) ,
primary key MemberName,TeamID,
foregin key TeamID,
组合主键不是这样建的
MemberName varchar(30) primary key,
No int primary key,
MemberName varchar(30) primary key,
No int primary key,
一个表不可以有2个主键。。
还有这个是什么??TeamID varchar(5) primary key foreign key。。。。。。。