【发布时间】:2011-06-19 10:45:30
【问题描述】:
我们使用以下方法从 DOS 批处理脚本运行 SQL。
该模型工作正常,但此特定代码不起作用。我相信是因为|| 字符。我尝试使用^|^|,但这不起作用。
有什么想法吗?
(
echo update mytable set file_path = 'C' || substr(file_path, 2);
echo commit;
echo exit
) | sqlplus x/x@orcl
【问题讨论】:
-
这个特定的代码不起作用:你能再具体一点吗?
标签: oracle dos sqlplus batch-file