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 -> DBMS_SQL.CURSOR: How to check if Last Row has been reached ?

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

From: Filiz Duman <filiz.duman_at_bt.com>
Date: Thu, 26 Sep 2002 14:23:19 +0100
Message-ID: <amv21a$229$1@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 - 08:23:19 CDT

Original text of this message

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