所以我想從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