clickhouse-client clickhouse-client --host=... --port=... --user=... --password=...
启用多行查询:
clickhouse-client -m clickhouse-client --multiline
以批处理模式运行查询:
clickhouse-client --query='SELECT 1'echo 'SELECT 1' | clickhouse-client clickhouse-client <<< 'SELECT 1'
从指定格式的文件中插入数据:
clickhouse-client --query='INSERT INTO table VALUES' < data.txt clickhouse-client --query='INSERT INTO table FORMAT TabSeparated' < data.tsv
最新评论: