cursor loop and continue statement : unexpected behaviour
问题 I might be overlooking something due to deadline stress. But this behaviour amazes me. It looks as if the cursor caches 100 rows and the continue statement flushes the cache and begins with the first record of a new cache fetch. I narrowed it down to the following script: drop table test1; create table test1 (test1_id NUMBER); begin for i in 1..300 loop insert into test1 values (i); end loop; end; / declare cursor c_test1 is select * from test1; begin for c in c_test1 loop if mod(c.test1_id