Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Cursors
You can do this:
DECLARE
CURSOR one IS SELECT x, y, z
FROM table_one; CURSOR two IS SELECT a,b,c FROM table_two WHERE a = var_x; --- var_x is a PL/SQLvariable name
:
BEGIN
OPEN one;
FETCH one INTO var_x, var_y, var_z; -- var x has some value now
OPEN two; -- the OPEN binds th=e
cursor so that the cursor
> Hi,
>
> I made cursors in my procedure. But I would like to know if I can call =
a
> field of a cursor in another cursor.
> I hope there is someone who can help me.
>
> Thanks,
> Stéphane D'Hoedt
Received on Tue Dec 21 1999 - 22:57:08 CST