|
|
|
|
|
|
| Re: return value of a function by using execute immediate [message #41694 is a reply to message #41133] |
Thu, 23 January 2003 10:20   |
William
Messages: 17 Registered: September 2000
|
Junior Member |
|
|
Hello I am running:
Oracle8 Enterprise Edition VLM Release 8.0.5.0.0 - Production
With the Partitioning option
PL/SQL Release 8.0.5.0.0 - Production
When I try this I get an error:
Why am I getting this error????
SQL> SET SERVEROUTPUT ON
SQL> declare
2 v_funval number;
3 begin
4 execute immediate 'SELECT FUN$PERSONNE_AGENT(180) X FROM DUAL' INTO v_funval;
5 dbms_output.put_line('Return is: '||v_funval);
6 end;
7 /
execute immediate 'SELECT FUN$PERSONNE_AGENT(180) X FROM DUAL' INTO v_funval;
*
ERROR at line 4:
ORA-06550: line 4, column 10:
PLS-00103: Encountered the symbol "IMMEDIATE" when expecting one of the following:
:= . ( @ % ;
|
|
|
|
|
|