select * into outfile导出到excel乱码
来源:互联网 发布:python readline函数 编辑:程序博客网 时间:2024/06/08 01:29
一:问题描述
最近在使用select * into outfile 'a.csv' from user;的时候发现一个问题,excel直接打开时候是一堆乱码。
二:解决办法
导出时候加上CHARACTER SET gbk即可。例子如下:INTO OUTFILE 'a.csv'
CHARACTER SET gbk
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
from user a;
--本篇文章转自:http://blog.sina.com.cn/s/blog_53b13d950101hsso.html
0 0
- select * into outfile导出到excel乱码
- select into outfile导出webshell技巧
- MySQL使用SELECT...INTO OUTFILE导出文本文件
- MySQL使用SELECT INTO OUTFILE导出文本文件
- MySQL 导出数据select into outfile用法
- mysql select into outfile 语法 乱码问题
- select..into outfile
- mysql select into outfile
- 使用python将mysql数据导入excel-select into outfile
- select into outfile的用法
- mysql的select into outfile
- MySQL select into outfile 语法
- mysql语句-select...into outfile
- mysql语句-select...into outfile
- SELECT ... INTO OUTFILE 指定字符集
- MySQL导出表字段和数据(select into outfile的灵活使用)
- MySQL SELECT..INTO OUTFILE语句只能导出1000行的故障
- select into outfile和load data infile
- SCOM Schema 2.0转为1.0
- android volley 预研
- 2015 Multi-University Training Contest 3 RGCDQ
- 新手小问题总结
- Robotium Solo Api 简介
- select * into outfile导出到excel乱码
- 五款常用mysql slow log分析工具的比较分析
- listview中显示不同的视图布局
- hibernate持久化对象状态
- 启用SVN的分支管理
- 黑马程序员——Java基础——继承与接口
- linux内核中GPIO的使用(一)--IO内存
- IOS GCD queue group
- 优化MySQL,还是使用缓存?