The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

RowCount.....

Posted by Ramesh R G V S on October 24, 2000 at 11:10 PM

> How do i fetch the no of rows from a resultset?


Hi
either u can use rowCount() method on resultset object
or can write a query as "select count(*) as rowCount" and fetch this field.
If ur using JDBC u can use rowCount() method but this w't work in some applicationserverAPIs like NAS API..
If u use second option u need to wriete an additional query.
u need to decide which u want to use according to requirement..
ok

regards
Ramesh R G V S



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us