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

Home -> Community -> Mailing Lists -> Oracle-L -> is this documented?

is this documented?

From: <ryan_gaffuri_at_comcast.net>
Date: Thu, 22 Sep 2005 20:05:53 +0000
Message-Id: <092220052005.29403.43330EA10005BD9C000072DB2200734364079D9A00000E09A1020E979D@comcast.net>


I may have just missed it in the docs or someone wrote it somewhere... just wondering if anyone else has seen this. DB 9.2.0.6
easiest to explain with pseudo-code
open cursor;

     loop
      fetch cursor bulk collect into l_plsqltable limit 100; 
     ... do stuff

  exit when cursor%notfound;
end loop;
close cursor;
end;
If the table I am reading has exactly 100 rows(have not tested it with multiples of 100, but suspect the same thing happens). The cursor will loop one more time even though there are no records and if you try to access the data you get a 'no data found' error. I know how to code around it. However if you have 99,101,1,2,12,10, etc... records... oracle knows its done and breaks. anyone else run into this?
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Sep 22 2005 - 15:08:10 CDT

Original text of this message

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