summaryrefslogtreecommitdiff
path: root/exec.sh
diff options
context:
space:
mode:
authorchaoc <[email protected]>2023-07-13 13:39:19 +0800
committerchaoc <[email protected]>2023-07-13 13:39:19 +0800
commit3f17d1aa98e92b43f8534eba1a7f8a7171f29678 (patch)
treefc086cbcc7a541457093444007dedb97a2418c21 /exec.sh
parent47850b02349a331e13fe03fddaf70439f0fa422a (diff)
feat: add exec fileHEADmain
Diffstat (limited to 'exec.sh')
-rw-r--r--exec.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/exec.sh b/exec.sh
new file mode 100644
index 0000000..c2c2352
--- /dev/null
+++ b/exec.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# 执行 SQL 导出结果
+clickhouse-client -h 127.0.0.1 --port 9001 -m -d tsg_galaxy_v3 -u tsg_query \
+--password '******' --queries-file query.sql --format_csv_delimiter="," > results.csv \ No newline at end of file