File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and the fly likes Retrieving no of rows from ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Retrieving no of rows from ResultSet" Watch "Retrieving no of rows from ResultSet" New topic

Retrieving no of rows from ResultSet

Imad Uddin Chishti

Joined: Oct 13, 2002
Posts: 15
Can someone tell me how to retrieve no of rows in a ResultSet using either ResultSet object or ResultSetMetaData.
Imad Uddin Chishti

Imad Uddin Chishti<br />Sun Certified JAVA Programmer platform 2<br />Senior Consultant<br />BearingPoint Pakistan
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
This belongs in the JDBC forum. I'm moving it there.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
jQuery in Action, 2nd edition
subject: Retrieving no of rows from ResultSet
Similar Threads
limit result through JDBC
Resultset row count
efficient way to update data
The ResultSet