CK导库
This commit is contained in:
+7
-1
@@ -37,4 +37,10 @@ INSERT INTO etl.dwm_company(
|
||||
ent_name String,
|
||||
reg_addr String,
|
||||
unified_code String,
|
||||
authority String) SELECT * FROM etl.company
|
||||
authority String) SELECT * FROM etl.company
|
||||
|
||||
# 导入company.csv
|
||||
clickhouse-client --format_csv_delimiter="|" --input_format_with_names_use_header=0 --query="INSERT INTO etl.dwd_company FORMAT CSVWithNames" --host=192.168.0.216 --password=goojia123456 < company.csv
|
||||
|
||||
# 导出company.csv
|
||||
clickhouse-client --password goojia123456 -d etl -q "select * from company FORMAT CSVWithNames" --format_csv_delimiter='|' > company.csv
|
||||
Reference in New Issue
Block a user