问题
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