如何使用变量进入OPENROWSET,而不是使用路径目录

时间:2017-06-23 06:35:57

标签: sql xquery xquery-sql

Halo All,

我有这样的疑问:

... openrowset(bulk @url, single_blob) as x;

有人可以帮我解决疑问吗?任何帮助将不胜感激。请告诉我为什么我不能写:

... openrowset(bulk 'C:\Users\bamba\Desktop\testing.xml', single_blob)as x;

相反,工作查询必须像:

spark-submit --jars /home/hduser/.ivy2/cache/com.typesafe/config/bundles/config-1.3.1.jar --class "retail.DataValidator" --master local[2] --executor-memory 2g --total-executor-cores 2 sample-spark-180417_2.11-1.0.jar file:///home/hduser/Downloads/Big_Data_Backup/ dev file:///home/hduser/spark-training/workspace/demos/output/destination file:///home/hduser/spark-training/workspace/demos/output/extrasrc file:///home/hduser/spark-training/workspace/demos/output/extradest

谢谢。

0 个答案:

没有答案