导入、导出的数据格式
ClickHouse可以接受和返回各种格式的数据,如CSV、JSON、XML、PARQUET等
- 输入支持的格式可用于解析提供给insert的数据,从文件支持的表(如File、URL或HDFS)执行select,或读取字典。
- 支持的输出格式可用于安排SELECT的结果,并在文件支持的表中执行insert。
参考Formats for Input and Output Data
导入数据
数据导入示例更多参考:Tutorials and Example Datasets
简单示例
建表语句
create table test_tbl_local on cluster cluster01
(
id UInt8,
user_name String,
age UInt16,
city St