在 SnowSQL 中可变文件夹路径

界限

有没有办法像在命令SnowSQL variabilize文件夹路径put,并copy在那里我可以做

put $file_location

甚至

put file:$file_location

代替

put file://R:\testing\data\take_1.txt
卢卡斯·索兹达

你可以使用define

> !define file_location=path_goes_here
> !set variable_substitution=true

> put &file_location

替换会话中的变量

要在语句中使用变量,请使用&variable_name语法。请注意,变量名称不区分大小写。

...

要将变量与文本组合,请将变量引用括在花括号中。

select '&{snowshell}_shell';

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章