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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: cursor in side cursor

Re: cursor in side cursor

From: Richard Ji <richard.c.ji_at_gmail.com>
Date: Tue, 18 Apr 2006 12:42:08 -0400
Message-ID: <b4d52f20604180942n189e00c1o83ea124b6cdb4b96@mail.gmail.com>


I think he is asking for this:

select dname, cursor(select ename from emp where emp.deptno=dept.deptno) from dept;

which returns a cursor within a cursor.

Richard Ji

On 4/18/06, LiShan Cheng <exriscer_at_gmail.com> wrote:
> hi do you mean something like this?
>
> for i in (select * from dept)
> loop
> for x in (select * from emp where deptno = i.deptno)

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Apr 18 2006 - 11:42:08 CDT

Original text of this message

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