How do you find out how many rows there are in a ResultSet without running through every row and counting them?
posted 14 years ago
what I've done in the past is to alias the rownum & order it desc in a subquery. that way you get the total number of rows of the query in the very first row. I'm sure there are better ways - I guess it depends if you prefer to load the rdbms or the application. Simon