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: cursor looping - best practices?

Re: cursor looping - best practices?

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 15 Jun 2007 14:03:56 -0700
Message-ID: <1181941433.317739@bubbleator.drizzle.com>


spacemarine_at_mailinator.com wrote:
> question,
>
> is there a best practice philosophy on looping thru a cursor of
> results in SQL (to tally things and whatnot)? im just curious if its
> considered something to be avoided, or a perfectly acceptable
> practice?
>
>
>
> thanks,
> sm

Yes. Don't do it. They are horribly obsolete.

Look up BULK COLLECT and FORALL.

Morgan's Library at www.psoug.org
Click on Array Processing.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Fri Jun 15 2007 - 16:03:56 CDT

Original text of this message

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