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[1.中文写入乱码问题:我输入的中文编码是urf8的,建的库是urf8的,但是插入MySQL总是乱码,一堆我用的是ibatis,终于找到原因了,我是这么解决的
strattime date DEFAULT null
strattime date DEFAULT null
)
运行SQL报1063错误......
这是因为:
auto_increment columns must be integer type (TINYINT, SMALLINT, INTEGER, or BIGINT)
自动增长的主键应该使用整型....
====================================[Incorrect string value: '\xF0\xA1\xBF\xA8\xE9\x82...' for column 'last_name'这个问题出在mysql上,mysql如果设置编码集为utf8那么它最多默认只能支持到3个字节的UTF-