创建表的时候设置charset=utf8
create table tb_user(
id int primary key auto_increment,
username varchar(20),
password varchar(20),
gender char(1),
addr varchar(30)
)charset=utf8;
创建表的时候设置charset=utf8
create table tb_user(
id int primary key auto_increment,
username varchar(20),
password varchar(20),
gender char(1),
addr varchar(30)
)charset=utf8;