Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: For i (Select..)
I think you have more 'control' over the explicit cursor. I've seen some
nifty little
tricks with explicit cursors.
-----Original Message-----
Sent: Monday, October 01, 2001 4:15 PM
To: Multiple recipients of list ORACLE-L
Hi,
If this code is a cursor then why doesn't everybody use it this way?
For me it seems a lot simplier and easier than declaring a cursor in a "normal" way.
At 14:50 2001.10.01. -0800, you wrote:
>the code IS a cursor
>
>
>--- Csillag Zsolt <starsoft_at_interware.hu> wrote:
> >
> >
> > Hi,
> >
> >
> > I've read in Tom Kyte's book the following technique:
> >
> >
> > For i in (Select statement ) Loop
> >
> > Process records here
> >
> > End Loop ;
> >
> > I have tried it and it works great.
> >
> > The question is that what is the difference betwen a cursor and the
> > code above?
> > Which is more efficient?
> >
> >
Zsolt Csillag
Hungary
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Csillag Zsolt INET: starsoft_at_interware.hu Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: John Lewis INET: jlewis_at_punchnetworks.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Mon Oct 01 2001 - 17:29:29 CDT
![]() |
![]() |