MySQL插入中文字符

创建表时在末尾加上 character set = utf8 

create table student(
 id int unsigned primary key,
 name varchar(20) not null,
 sex char(1) not null,
 birthday date not null,
 tel char(11) not null,
 remark varchar(200)
)character set = utf8;

 

posted @ 2022-04-13 14:56  南风知君  阅读(113)  评论(0)    收藏  举报