Run multiple sql statements using only execute in TOAD

早过忘川 提交于 2020-01-14 04:52:11

问题


I am trying to run multiple select SQL statements in TOAD using Execute command and not as execute as a script, Each statement ending with a semicolon but unfortunately TOAD is not allowing me to do this.

Tried running as a single block by using begin and end but that attempt also failed.

Is there any way to achive this..


回答1:


you can run it as a script in Toad:

exec dbms_output.put_line('aaa');
exec dbms_output.put_line('bbb');

or use the following anonymous PL/SQL block and execute it as a statement:

begin
    dbms_output.put_line('aaa');
    dbms_output.put_line('bbb');
end;
/


来源:https://stackoverflow.com/questions/35698855/run-multiple-sql-statements-using-only-execute-in-toad

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