Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> returning a value from code executed under DBMS_SQL
I would like to "return" a value from some PL/SQL code executed dynamically
using DBMS_SQL to a variable in the procedure containing the DBMS_SQL
calls. The following works fine (cleanly runs to the end of the
procedure):
PROCEDURE example IS
global_var INTEGER; block_string VARCHAR; cursor_handle INTEGER; cursor_result INTEGER;
block_string := 'DECLARE ' || ' X INTEGER := 3; ' || 'BEGIN ' || ' X := 1; ' || 'END;' ;
Any ideas on how I can get a value back out of the dynamic code?
Thanks much for any help and/or ideas,
Paul
--
* * * * * * * * * * * * * * * *
![]() |
![]() |