2、如何存入execl表内?
直接输入到xls结尾的文件内
mysql -h 172.16.136.9 -P6515 -u user -ppasswd db_name -e ‘select * from game_flow_balance where activityID = "yWyY1oi2" and (status = "2" or status ="4");‘ >> /tmp/neimeng3.xls
原文:http://blog.51cto.com/jingfeng/2154169