create table kn_productconfig(
id varchar(10) primary key not null auto_increment,
avviewname varchar(20) DEFAULT NULL,
orderviewname varchar(20) DEFAULT null
producttype int(10) DEFAULT null
readpricetype int(10) DEFAULT null
traveltype int(10) DEFAULT null
issuccess int(10) DEFAULT null
travelertype int(10) DEFAULT null
productname varchar(20) DEFAULT null
strattime date DEFAULT null
strattime date DEFAULT null
)
运行SQL报1063错误......
这是因为:
auto_increment columns must be integer type (TINYINT, SMALLINT, INTEGER, or BIGINT)
自动增长的主键应该使用整型....
====================================
本文介绍了一个关于SQL创建表时出现的1063错误,并解释了错误原因及解决办法。主要讨论了自动增长的主键字段类型必须为整数类型的问题。
508





