2

I have code like this:

set serveroutput on

declare
v_str varchar2(200);
begin
v_str := q'!dbms_output.put_line('Hello world');!';
Execute immediate v_str;
end;

Oracle SQL Developer says that there's invalid SQL Statement, what's the problem?

4

1 回答 1

5
declare
v_str varchar2(200);
begin
v_str := q'!begin dbms_output.put_line('Hello world'); end;!';
Execute immediate v_str;
end;
/

作品...

于 2012-12-18T09:28:36.563 回答