utf8mb4支持四字节
查看建表语句,默认编码utf8
show create table table_name;
查看表中每个字段的字符集
show full fields from table_name;
改变表的编码,为utf8mb4
alter table table_name
convert to character set utf8mb4;
utf8mb4支持四字节
查看建表语句,默认编码utf8
show create table table_name;
查看表中每个字段的字符集
show full fields from table_name;
改变表的编码,为utf8mb4
alter table table_name
convert to character set utf8mb4;