create table students(id int unsigned primary key auto_increment,name varchar(50) not null,age int unsigned,high decimal(3,2),gender enum('男','女','中性','保密','妖') default '保密',cls_id int unsigned);
在对数据库插入如上带有中文带有默认值的字段的时候,出现了如下错误:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1