![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
create or replace procedure t1 is strSQL varchar2(50); my_cursor INTEGER; begin strSQL:='create or replace procedure t2 is'; strSQL:= strSQL ||' begin'; strSQL:= strSQL ||' end t2'; my_cursor:= DBMS_SQL.OPEN_CURSOR; DBMS_SQL.PARSE(my_cursor, strSQL, DBMS_SQL.V7); DBMS_SQL.CLOSE_CURSOR(my_cursor); end t1; |
#3
| |||
| |||
|
|
krishnamurthy.iyer (AT) gmail (DOT) com wrote: create or replace procedure t1 is strSQL varchar2(50); my_cursor INTEGER; begin strSQL:='create or replace procedure t2 is'; strSQL:= strSQL ||' begin'; strSQL:= strSQL ||' end t2'; my_cursor:= DBMS_SQL.OPEN_CURSOR; DBMS_SQL.PARSE(my_cursor, strSQL, DBMS_SQL.V7); DBMS_SQL.CLOSE_CURSOR(my_cursor); end t1; Possible yes. Smart? No! While you are at it take a look at the DBMS_DDL package too if you Oracle version isn't really 7. BTW: If it isn't 7 what are you doing with that parameter? Apart from that - it will not work; minimum requirement is to have |
![]() |
| Thread Tools | |
| Display Modes | |
| |