mysql属性怎么设置中文

mysql中设置中文属性的方法

mysql设置中文属性,需要在表中使用utf8编码

如:

create table test (

        id     int auto_increment,

        title  text,

        content  text,

        posted_on  datetime,

        primary key (id)

) character set = utf8;

当数据表不支持中文属性时,使用以下语句对表进行修改即可

alter table 表名 convert to character set utf8;

赞(0)
未经允许不得转载:主机测评网 » mysql属性怎么设置中文
分享到: 更多 (0)