首页 > 数据库技术 > 详细

ClickHouse奇技淫巧系列之SQL查文件

时间:2020-05-16 20:59:42      阅读:145      评论:0      收藏:0      [点我收藏+]
history | awk ‘{print $1"\t"$2}‘ | clickhouse-client --query="SELECT shell, count() AS c FROM history GROUP BY shell ORDER BY c DESC limit 10 " --external --file=- --name=history --structure=‘id UInt16, shell String‘  -h  127.0.0.1  
ls      390
cd      243
clickhouse-client       173
du      67
vim     57
htop    42
cat     28
history 27
tailf   25
mysql   24



参考资料
https://www.cnblogs.com/zqr99/p/9939418.html
https://www.jianshu.com/p/2e49edbeb1ef
https://www.jianshu.com/p/8875dede8db7?clicktime=1578014751

ClickHouse奇技淫巧系列之SQL查文件

原文:https://www.cnblogs.com/junneyang/p/12901990.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!