所以我想从Visual Studio执行一个oracle plsql脚本。我安装了Oracle's visual studio tools,并在VS2010中打开了一个连接到oracle数据库实例的新查询窗口。下面是我试图运行一个脚本示例:从Visual Studio执行Oracle脚本
DECLARE
BEGIN
DBMS_OUTPUT.put_line ('Hello World!'); --tried various types of statements here
END;
不管我怎么努力投入的开始/结束块,我得到的身体下面:
ERROR
ORA-06550: line 4, column 3:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
; <an identifier> <a double-quoted delimited-identifier>
The symbol ";" was substituted for "end-of-file" to continue.
我不从其他工具(如SQL开发人员或蟾蜍)运行时遇到同样的问题。是什么赋予了?
这没有什么区别。 – Alex 2012-02-21 21:52:44
@Alex:我更新了我的回答 – 2012-02-22 15:12:13
你是对的。还有一种选择是使用VS插件去除CR,但我无法使它工作:http://grebulon.com/software/stripem.php – Alex 2012-02-22 18:11:01