执行的语法和命令如下:
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