在终端运行查询clickhouse的方式

执行的语法和命令如下:

time clickhouse-client -h localhost -u default --password "root" --port 9000 -d tpch -q "select count(*) from customer;"

打印的结果显示如下:

root@test-stonedata-ck02:~# time clickhouse-client -h localhost -u default --password "root" --port 9000 -d tpch -q "select count(*) from customer;"
1500000

real    0m0.334s
user    0m0.106s
sys     0m0.033s

 

posted @ 2023-05-23 15:26  Syw_文  阅读(14)  评论(0编辑  收藏  举报