I have Created one oracle store procedure .There are total 3 parameters 2 in and 1 out parameter ,
I need to insert the out parameter into the table . Put when I am firing insert statemet that will insert only one value .
Could you tell me how to insert more than one values if your procedure returning two values .
My code was little lengthy so could not able to paste here .
I am giving you emp talble exam ..suppose following procedure returning two values
[code=oracle]
Create or replace procedure empty (v_ename varchar2,v_empn o varchar2,v_chil dname out varchar2) as
TYPE childname IS REF CURSOR;
v_childname childname;
begin
open childname for select childname from emp where ename=v_ename and empno= v_empno
FETCH v_childname INTO v_childname ;
EXIT WHEN v_childname %NOTFOUND;
end loop;
end ;
[/code]
if this procedure retruns two value then how to handle these two values ... Please reply
Thanks
I need to insert the out parameter into the table . Put when I am firing insert statemet that will insert only one value .
Could you tell me how to insert more than one values if your procedure returning two values .
My code was little lengthy so could not able to paste here .
I am giving you emp talble exam ..suppose following procedure returning two values
[code=oracle]
Create or replace procedure empty (v_ename varchar2,v_empn o varchar2,v_chil dname out varchar2) as
TYPE childname IS REF CURSOR;
v_childname childname;
begin
open childname for select childname from emp where ename=v_ename and empno= v_empno
FETCH v_childname INTO v_childname ;
EXIT WHEN v_childname %NOTFOUND;
end loop;
end ;
[/code]
if this procedure retruns two value then how to handle these two values ... Please reply
Thanks
Comment