Re: store results from function into two seperate variables???
From: Carlos <miotromailcarlos_at_netscape.net>
Date: 4 Aug 2005 00:41:36 -0700
Message-ID: <1123141296.893110.212890_at_o13g2000cwo.googlegroups.com>
7 /
1683 Received on Thu Aug 04 2005 - 09:41:36 CEST
Date: 4 Aug 2005 00:41:36 -0700
Message-ID: <1123141296.893110.212890_at_o13g2000cwo.googlegroups.com>
>> select p_storedivreg_hist.results(32) into x,y from dual;
SQL> var my_id number
SQL> select 1 into :my_id from dual;
1
1
SQL> print my_id;
MY_ID
>> is there a way to store the results into two seperate varaibles?
SQL> VAR V_DBDIV NUMBER;
SQL> VAR v_DBREG NUMBER;
SQL> declare
2 ref_c p_storedivreg_hist.resultset;
3 begin
4 ref_c := p_storedivreg_hist.results(32); 5 fetch ref_c into :v_DBDIV,:v_DBREG;6 end;
7 /
Procedimiento PL/SQL terminado correctamente.
SQL> print v_DBDIV;
v_DBDIV
1683 Received on Thu Aug 04 2005 - 09:41:36 CEST