原文见:http://msfconsole.blog.163.com/blog/#m=0&t=1&c=fks_084070086085087074087081086095086087081065080087086068087
mysql> use hehe;
Database changed
mysql> select * from mm;
+----+------+------+-------+----------+---------+---------+
| id | name | age | money | services | address | remarks |
+----+------+------+-------+----------+---------+---------+
| 17 | ?? | 0 | 0 | ???? | ???? | ??????? |
| 18 | ?? | 25 | 0 | ???? | ??? | ??????? |
+----+------+------+-------+----------+---------+---------+
2 rows in set (0.00 sec)
mysql> set names gbk;
Query OK, 0 rows affected (0.00 sec)
mysql> select * from mm;
+----+------+------+-------+----------+----------+----------------+
| id | name | age | money | services | address | remarks |
+----+------+------+-------+----------+----------+----------------+
| 17 | 店名 | 0 | 0 | 项目清单 | 详细地址 | 您的评价很重要 |
| 18 | 店名 | 25 | 0 | 项目清单 | 石桥铺 | 您的评价很重要 |
+----+------+------+-------+----------+----------+----------------+
2 rows in set (0.00 sec)
mysql>
相关文章
- win7下mysql 5.7版本中修改编码为utf-8的方法步骤
- 使用mybatis从mysql里进行模糊查询的编码问题
- 如何在不删除数据库权限的情况下从命令行删除所有MySQL表?(复制)
- linux shell命令行下操作mysql 删除mysql指定数据库下的所有表--亲测成功百分百测试通过--绝对可靠
- 怎样将mysql中数据的编码格式有latin1转换成utf8格式?
- Mac下将MySql的编码格式由latin1改为utf8
- MacBook 下如何配置mysql数据库的编码为utf8
- deepin 下mysql编码问题utf8的解决
- 简要介绍一下UTF-8编码和GBK编码------并利用linux中的iconv命令来实现UTF-8和GBK之间的相互转换
- qt 下 utf8编码与gbk编码的相互转换(附实例)