This commit is contained in:
shenjian@fangjia.com
2023-04-20 18:39:21 +08:00
parent 6ef0d4adfc
commit 2a9fa3574f
+7 -1
View File
@@ -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