Re: How to count rows using metadata features of JDBC



Bryan E. Boone wrote:
If you have a jdbc driver that has cursor level access you can do:

resultset.last();
int rowCount = resultset.getRow();

Think that depends on your fetch size. And i'd say it's not a good idea inside large ResultSet's.

Good luck
.



Relevant Pages