mysql 非交互查询 存入execl
生活随笔
收集整理的这篇文章主要介绍了
mysql 非交互查询 存入execl
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
1、MySQL如何实现非交互式查询?
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");'
注意:-e 非交互 单引号内为查询语句。
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
转载于:https://blog.51cto.com/jingfeng/2154169
总结
以上是生活随笔为你收集整理的mysql 非交互查询 存入execl的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: QLoo推出用于现有服务的GraphQL
- 下一篇: 当 Vue 处理数组与处理纯对象的方式一