MySQL select 语句插入中文要注意的

来源:互联网 发布:centos selinux关闭 编辑:程序博客网 时间:2024/06/06 09:46

set names gbk;

 

 

 

插入失败后的解决方案
show variables like 'chara%';
set character_set_client=gb2312;


显示失败后的解决方案
set character_set_results=gb2312;


 

 

原创粉丝点击