clickhouse-local 操作

Query

clickhouse-local --query "
select * from file('1.tsv', TSV, 'a int') t1
cross join file('2.tsv', TSV, 'b int') t2"

Insert

clickhouse-local -q 
"insert into function
 remote('localhost:9000', 'default.test', 'default', 'password') 
values
 ('a', 1, '2020-01-01 00:00:00', 123)"

Describe

./clickhouse local -q "DESCRIBE file('reviews.tsv')"

你可能感兴趣的:(clickhouse,前端,linux)