insert into Student (Snum ,Sname ,Ssex ,Sage ,Dnum,Sclass) values ('98030101','张三','男',20,'03','980301');
出现错误:ERROR 1366 (HY000): Incorrect string value
修改表格
输入命令:
alter table table_name convert to character set utf8;
再次添加,成功!
其实可以在创建table时最后加一行character set = utf8;