mysql建表出错,错误代码1005
createtableMerchandise(SequenceNumberint(4)auto_increment,MerchandiseNumbervarchar(20...
create table Merchandise(
SequenceNumber int(4) auto_increment,
MerchandiseNumber varchar(20) not null,
TreatyCode varchar(20) not null,
SortNumber char(10) not null,
MerchandiseName varchar(50) not null,
RetailPrice double not null,
MerchandiseSpec varchar(50),
Units varchar(20) not null,
PurchasePrice double not null,
CheckTerm numeric(9),
Remark varchar(50),
primary key(SequenceNumber),
foreign key(SortNumber)
references sort(SortNumber)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
请问这是什么错误
谢谢 展开
SequenceNumber int(4) auto_increment,
MerchandiseNumber varchar(20) not null,
TreatyCode varchar(20) not null,
SortNumber char(10) not null,
MerchandiseName varchar(50) not null,
RetailPrice double not null,
MerchandiseSpec varchar(50),
Units varchar(20) not null,
PurchasePrice double not null,
CheckTerm numeric(9),
Remark varchar(50),
primary key(SequenceNumber),
foreign key(SortNumber)
references sort(SortNumber)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
请问这是什么错误
谢谢 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询