Re: PLS/SQL: OK to use EXIT in a cursor FOR LOOP ??

From: Andy Hardy <aph_at_ahardy.demon.co.uk>
Date: Tue, 15 Jun 1999 09:46:39 +0100
Message-ID: <NA8RCEAvLhZ3Ewcy_at_ahardy.demon.co.uk>


In article <7k4ujo$4qv$1_at_news.netvision.net.il>, Haggai <haggai_shachar_at_hotmail.com> writes
>I prefer using:
>
>cursor_name.open
>cursor_name.fetch (a);
>while cursor_name%found and cursor_name%rownum < 10 loop
> .
> .
> .
> cursor_name.fetch (a);
>end loop;
>
>cursor_name.close;
>
>I'm not sure about the syntax, but the main idea is to transform your FOR
>loop to WHILE loop. (which you can control the exit condition)

Is this for the 'one-entry one-exit' style of programming, or have you experienced problems with the EXIT WHEN ?

-- 
Andy Hardy. PGP key available on request
===============================================================
Received on Tue Jun 15 1999 - 10:46:39 CEST

Original text of this message