Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: cursor looping - best practices?
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.orgReceived on Fri Jun 15 2007 - 16:03:56 CDT
![]() |
![]() |