Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Assigning value from one cursor to another?

Re: Assigning value from one cursor to another?

From: Karsten Farrell <kfarrell_at_belgariad.com>
Date: Mon, 07 Apr 2003 23:57:23 GMT
Message-ID: <MPG.18fbb039603b6da4989720@news.la.sbcglobal.net>


romich_at_dukascopy.com said...
> I have 2 cursors , one is opened for select, then if some condition is true
> i have to send c1.value to c2.?
> Can I?
>

Do you mean something like this?

declare
  cursor c2 (c1_value in number) is select...;   ...declare "into" variables...
begin
  for c1 in (select ...)
  loop
    open c2 (c1.value);
    fetch c2 into...;
    ...do something...
    close c2;
  end loop;
end;

-- 
/Karsten
DBA > retired > DBA
Received on Mon Apr 07 2003 - 18:57:23 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US