How to count rows using metadata features of JDBC



I am relatively new to Java/JDBC programming.

I know that you can count columns in a resultset row using the
getColumnsCount() method. However, given a resultset, is there one
simple method that can be called to count the number of rows in the
resultset without looping over each row in the resultset ?

TIA for all your help.
.



Relevant Pages

  • Re: How to count rows using metadata features of JDBC
    ... I know that you can count columns in a resultset row using the getColumnsCount() method. ... For some DBMSes and query types, ... DBMS doesn't know how many rows are going to be returned till ...
    (comp.lang.java.databases)
  • Re: How to count rows using metadata features of JDBC
    ... I know that you can count columns in a resultset row using the getColumnsCount() method. ... For some DBMSes and query types, ... DBMS doesn't know how many rows are going to be returned till ...
    (comp.lang.java.databases)
  • SqlCeResultSet & DataGrids
    ... I am having trouble formatting a datagrid that is using a ResultSet as the ... DataSource. ... Does anyone know the mapping name for the tables? ... Prev by Date: ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: new to jdbc!
    ... On Sat, 23 Jul 2005 09:19:40 GMT, shya wrote: ... > a particular ResultSet without know them before? ... The answer is forty-two, ... Prev by Date: ...
    (comp.lang.java.programmer)
  • How to get return type (Resultset) information from database storeprocedure object programmatically
    ... For Example Below are two storeprocedures one returns resultset and ... @Original_ContactName1 IS NULL AND ContactName IS NULL) AND (Phone = ... Prev by Date: ...
    (microsoft.public.dotnet.general)