![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
"Frank Piron" <empty (AT) zero (DOT) nil> wrote in message news psisl5wh3m0et4w (AT) news (DOT) online.de...Am Fri, 10 Dec 2004 09:45:50 +0100 schrieb eudorica snjezana.katusic (AT) htnet (DOT) hr>: Is there way to count a number of rows in opened cursor before fetching it (%rowcount works only after fetching)? I need to know the number of rows before enter loop. Thanks. You may count the rows explicitly before entering the loop. if the cursor statement is: select <projection-clause from .... you may count with: select count(rowid) into <counter_var from .... where <counter_var> is some local variable into which you may store the number of rows the cursor will retrieve. -- Frank Piron, defrankatkonaddot (leftrotate two) Except the number could change from count to the fetch of the data. Jim You could surround the whole thing with "SET TRANSACTION READ ONLY" and |
![]() |
| Thread Tools | |
| Display Modes | |
| |