From: Andreas Gerler Date: Mon, 31 Jul 2017 16:18:24 +0000 (+0200) Subject: snippet: vertica-cp-table X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=d7db725d83357c0988c2990d55bb6de3cbe91781;p=emacsconfig.git snippet: vertica-cp-table snippet to truncate and copy a table via vertica connect. Signed-off-by: Andreas Gerler --- diff --git a/snippets/sql-mode/vertica-cp-table b/snippets/sql-mode/vertica-cp-table new file mode 100644 index 00000000..ebce9dca --- /dev/null +++ b/snippets/sql-mode/vertica-cp-table @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: vertica-cp-table +# key: cp-table +# -- +TRUNCATE TABLE $1.$2; +COPY $1.$2 FROM VERTICA $3.$1.$2 DIRECT; \ No newline at end of file