Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Interesting PL/SQL question
IF a person was to use a cursor with a FOR LOOP would the language be
smart enough to close the cursor in the following statement? I am just
looking for
some data that uses a UNION statement. If it is found, it is inside a
function and it
will return false to the calling procedure.
FOR rec IN CSR_CLIENTS LOOP
RETURN FALSE;
END LOOP;
I know that this will work, but I am wondering if it will clean up after
itself? Otherwise, I could
set a flag, and issue a statement like this:
FOR rec IN CSR_CLIENTS LOOP
bFound := TRUE; EXIT;
I am curious as to what everyone thinks,
Brad Received on Tue Nov 25 1997 - 00:00:00 CST