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!

Stop query execution if it is going to return more rows than the specifed rows

Subhash PophaleSep 30 2013 — edited Sep 30 2013

Hi All,

I am fetching records from many voluminous tables having multiple joins based on filter criteria filled from frond end application. As per the selected criteria, I want to have a pre-check if query would return more than 1000 rows then I have to show user a message saying that he should refine the search.

Is there any performant way to query db and dynamically find record count and stops executions if it is going return more than the specified no of rows.

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 28 2013
Added on Sep 30 2013
5 comments
1,741 views