Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: DBMS_SQL.CURSOR: How to check if Last Row has been reached ?

Re: DBMS_SQL.CURSOR: How to check if Last Row has been reached ?

From: Scott Mattes <Scott_at_TheMattesFamily.ws>
Date: Thu, 26 Sep 2002 16:09:15 GMT
Message-ID: <LiGk9.2901$m92.757953@news1.news.adelphia.net>


For 'normal' cursors I use

exit when cursor_name%not_found;

Maybe that will work for this cursor???

"Filiz Duman" <filiz.duman_at_bt.com> wrote in message news:amv21a$229$1_at_pheidippides.axion.bt.co.uk...
> I have following Cursor:
>
> l_cursor := DBMS_SQL.OPEN_CURSOR;
> DBMS_SQL.PARSE(l_cursor, l_sqlStatement, DBMS_SQL.native);
> l_retVal := DBMS_SQL.EXECUTE(l_cursor);
>
> loop
> l_retVal := DBMS_SQL.FETCH_ROWS(l_cursor);
>
> /* do different things */
>
> end loop
>
> Within the loop how can I check:
>
> if (last row)
> then....
>
> Many thanks in advance.
>
>
>
>
Received on Thu Sep 26 2002 - 11:09:15 CDT

Original text of this message

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