方法1:使用linux iconv将utf-8日志转为gbk编码的文件,然后gbk环境下统计数据。
utf8(){
LOG_FILE="/lcims/crontab_shell/outfile/lan_wlan_wo/SocketMain.log141114_lan1"
LOG_FILE_TMP="/lcims/crontab_shell/outfile/lan_wlan_wo/...
分类:
系统相关 时间:
2014-11-15 18:55:14
阅读次数:
236
mysql数据导出的方法有很多,例如mysqldump, mysql -e 'sql' > file, 这些都可以很方便的导出数据,可是在使用普通用户导出数据的时候,出现了问题。
1
select * into
outfile "file_path" from my_table
上面的语句也是mysql导出数据的一种方式,在...
分类:
数据库 时间:
2014-11-12 17:53:06
阅读次数:
235
来自国外博客的一篇文章介绍了MySQL 的 read_buffer_size 参数是如何影响写缓冲和写性能。据说 read_buffer_size 参数只影响以下两种情况的写数据的性能:SELECT INTO … OUTFILE ‘fileName‘When writing to the OUTFI...
分类:
数据库 时间:
2014-11-11 21:05:02
阅读次数:
292
Name "capture"
OutFile "capture.exe"
InstallDir "$PROGRAMFILES\capture"
Page directory
Page INSTFILES
UninstPage uninstConfirm
UninstPage instfiles
Var remote_zip_file
Var local_zip_file
Sect...
分类:
其他好文 时间:
2014-11-04 13:09:55
阅读次数:
263
uniq 命令 文字 uniq是LINUX命令 用途 报告或删除文件中重复的行。 语法 uniq [ -c | -d | -u ] [ -f Fields ] [ -s Characters ] [ -Fields ] [ +Characters ] [ InFile [ OutFile...
分类:
其他好文 时间:
2014-10-28 17:32:48
阅读次数:
193
select*frommy_tableintooutfile‘/tmp/abc.xls‘;然后就是ftp把文件弄回本地了。我的是程序自动放到C:\下另外,还有一种导出的方式,相较于上者而言,这种可以对已经存在的文件直接覆盖。//使用outfile的方法mysql>select1intooutfile‘/tmp/t1.txt‘;QueryOK,1rowaffected(0.0..
分类:
数据库 时间:
2014-10-14 15:17:49
阅读次数:
278
select .... outfile 'file_path' fields terminate by '\t' lines terminate by '\r\n' from table_name;---------------------------------------------------...
分类:
数据库 时间:
2014-10-09 15:47:53
阅读次数:
208
-----备份------- -- 文件不会覆盖,mysql会自动生成一个不存在的文件如果存在会报错 SELECT * FROM 表名 into OUTFILE 'D:\text.txt'FIELDS TERMINATED BY ',' -- 查询出来的字段用‘,’隔开恢复的时候需要 LIN...
分类:
数据库 时间:
2014-10-09 15:23:13
阅读次数:
205
P1141最小非负值描述输入一个自然数n(ngetline(cin,st);这里不要写什么infile outfile了,直接写cin经验证无错代码//我对代码长度不是很在意,短码写着累看着也累啊(我也写不好……)#include#include using namespace std;int a....
分类:
其他好文 时间:
2014-10-02 00:31:21
阅读次数:
398
SELECT g.goods_id, g.bn,g.name,b.brand_name,g.price,g.mktprice,c.cat_name into outfile '/tmp/xxx.xls' from sdb_b2c_goods as g LEFT JOIN sdb_b2c_goo...
分类:
数据库 时间:
2014-09-26 13:43:18
阅读次数:
203