Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to count ref cursor result set?

580861Aug 7 2007 — edited Aug 8 2007
I have about 20 programs in a package. Each program returns ref cursor result set.
We are now want to create a process to count the output result set, if the output has more than 100 rows, we will raise an message.

I tried cursor%rowcount, but The %ROWCOUNT attribute returns the current row count of the cursor. After the cursor is opened, %ROWCOUNT is equal to zero.

Is there an general function to count total ?

Thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 5 2007
Added on Aug 7 2007
9 comments
11,074 views