中文乱码

中文乱码_第1张图片

中文乱码

中文乱码_第2张图片
创建时应该指定字符集为utf-8

create table tab_user
(
   uid                  int not null auto_increment,
   username             varchar(100) not null,
   password             varchar(32) not null,
   name                 varchar(100),
   birthday             date,
   sex                  char(1),
   telephone            varchar(11),
   email                varchar(100),
   status               char(1) ,
   code					varchar(50),
   
   primary key (uid),
   unique key AK_nq_username (username),
   unique key AK_nq_code (code)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;

你可能感兴趣的:(爬坑)