mysql字符集的问题
大家好,请教个字符集的问题
我已经把
httpd.conf 中设置 AddDefaultCharset gb2312
php.ini 中设置 default_charset = "gb2312"
my.cnf 中设置
[mysqld]
default-character-set=gb2312
[mysql]
default-character-set=gb2312
并且
mysql> show variables like 'char%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | gb2312 |
| character_set_connection | gb2312 |
| character_set_database | gb2312 |
| character_set_filesystem | binary |
| character_set_results | gb2312 |
| character_set_server | gb2312 |
| character_set_system | utf8 |
|
相关问答:
String SQL="insert into 学生信息表 values(StudentNumber,StudentName,StudentAge)";其中StudentNumber,StudentName,StudentAge都是变量。这样写不对……到底该咋写啊
万分感谢!
String SQL=&q ......
表
CREATE TABLE `ch1` (
`id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT,
`no` int(10) unsigned DEFAULT NULL,
`dtime` datetime DEFAULT NULL,
PRIMARY KEY (`id ......
今天老大布置个任务,要我在我们的产品中安装一个MYSQL数据库,要求是软件占用空间不能超过5M。
在网上找了好久也没有找到关于嵌入式系统中MySQL数据库的资料,有的也只是简单提一下。
现特向各位请教以下问题:
......
原帖请看
http://topic.csdn.net/u/20100115/09/98c6ac75-d6fe-4b6c-90dc-336a738a0c0f.html?14601
总结下就是
apache php mysql 我全部都用的是gb2312,有什么办法可以不用每次mysql_query('SET character_set_r ......