首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

关于数据库#1063 - Incorrect column specifier for column 'xxx'异常

2012-08-16 
关于数据库#1063 - Incorrect column specifier for column xxx错误create table kn_productconfig(id v

关于数据库#1063 - Incorrect column specifier for column 'xxx'错误

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)

自动增长的主键应该使用整型....

?

?

====================================

热点排行