You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Salvatore Balzano <sa...@inwind.it> on 2001/12/26 18:46:04 UTC
Number of rows in a resultset?
Hi, how can I know how many rows are in a jdbc resultset?
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: Number of rows in a resultset?
Posted by Mark Woon <mo...@SMI.Stanford.EDU>.
Salvatore Balzano wrote:
> Hi, how can I know how many rows are in a jdbc resultset?
ResultSet rs = [whatever];
rs.last();
int numRows = rs.count();
-Mark
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>