ClickHouse奇技淫巧系列之SQL查文件
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.htmlhttps://www.jianshu.com/p/2e49edbeb1efhttps://www.jianshu.com/p/8875dede8db7?clicktime=1578014751
相关推荐
renshuguo 2020-06-24
yuzhongdelei0 2020-06-13
haohong 2020-04-08
tanyhuan 2020-03-01
kuwoyinlehe 2020-01-02
zlsh00 2019-12-29
85407718 2019-12-06
81487308 2018-09-08
Aveiox 2018-06-11
80437700 2019-05-31
81427605 2019-05-21
89477009 2018-12-23
81487308 2019-09-04
84307063 2018-09-27
DBATips 2018-01-26
heroxsx 2013-02-23
zousongshan 2012-09-08
Andyshrk 2012-07-31
Kshine0 2012-07-17