我在之前輸入了set names gbk;后,
DROP TABLE IF EXISTS imooc_user;
CREATE TABLE imooc_user(
id int unsigned auto_increment key,
usename varchar(20) not null unique,
password char(32) not null,
sex enum('男','女','保密') not null default '保密',
face varchar(50) not null,
regTime int unsigned not null
);
sex enum('男','女','保密') not null default '保密',這句還是報錯,我在建這張表時,在后面加了charset=utf8或者是charset=gbk;表才能建成,我的mysql版本是5.6.12,為什么老師的數據貼進去可以啊
?
2014-10-12
嗯 我的是mysql5.5的版本
^-^...