wood burning stoves 2.0*
The moose likes JDBC and the fly likes how to get the number of rows fram a resultset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to get the number of rows fram a resultset" Watch "how to get the number of rows fram a resultset" New topic
Author

how to get the number of rows fram a resultset

lavanya subramanian
Ranch Hand

Joined: Nov 03, 2000
Posts: 52
hi guys,
does anybody know how to get the number of rows fram a resultset without having count variable and incrementing it.

help would be appreciated,
lavanya
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

This is a common question and there is a wealth of knowledge in the JavaRanch search (located just under the 'Post New Topic' button.
I got 34 hits for "count ResultSet"
Dave.
 
jQuery in Action, 2nd edition
 
subject: how to get the number of rows fram a resultset
 
Similar Threads
How do you know number of rows fetched by ResultSet?.
how to get a number of record from the Resultset
Resultset row count
How to find the number of rows in the resultset
Can we extract the data from resultset after the connection get closed.