how to get PL/SQL in SQLFiddle?

孤街浪徒 提交于 2019-12-22 01:38:16

问题


Any clues how to get PL/SQL in SQLFiddle?

I've tried

begin
 dbms_output.put_line('Hello World');
end;
/

or

begin
 null; 
end;
/

which works in SQL*Plus (or TOAD or SQLDeveloper or ...) but SQLFiddle just gives me

ORA-06550: line 2, column 36: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: := . ( % ; : begin dbms_output.put_line('Hello World')

So it seems there is some kind of PL/SQL engine in place but I can't figure out how to get it to parse anonymous program units.

See for example http://www.sqlfiddle.com/#!4/db36d/4


回答1:


As @Lieven correctly pointed out: There is a button below right where you can toggle the query terminator to /.

Working example at http://www.sqlfiddle.com/#!4/db36d/5



来源:https://stackoverflow.com/questions/11483450/how-to-get-pl-sql-in-sqlfiddle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!