Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 3212

How to get total row count for query with paging?

$
0
0

Hi everyone,

do you know of a good way to determine the total number of rows of a query that uses paging?

Example:

SELECT A, B, C FROM SOME_TABLE ROWS 1 TO 10

Is it possible to get the total number of rows without having to execute another query like:

SELECT COUNT(*) FROM SOME_TABLE

I want to omit the second query due to performance reasons. The actual query contains a where-clause and takes some time to execute.


Viewing all articles
Browse latest Browse all 3212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>