Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Slightly OT: Perl and PL/SQL Cursor Question
In PL/SQL, if I need to know if I've fetched the last
row, I can do this:
IF recCursor%NOTFOUND THEN
...
...
END IF;
How would I do this in Perl? Looking at the DBI docs,
there does not seem to be a similar method. It
suggests doing a COUNT(*) or possibly use the
following:
$hash_ref = $sth->fetchall_hashref('id');
So, any similar functionality to %NOTFOUND in Perl?
tia
mkb
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Oct 02 2001 - 13:51:44 CDT
![]() |
![]() |