Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: How to get ResultSet size?


Message #1 by Edward <zhangsc@n...> on Mon, 03 Jun 2002 16:04:46 +0800
--0-2067774899-1023101109=:86434
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


Hi

if you want to find whether a resultset was null you can use rs.wasNull() method.

if you want to find the number of rows in a nonnull resultset first move to the lastrow using rs.last()

Then get the number of rows of the result set using method rs.getRow(). This method return you the rownumber of the resultset.
Obviusly it is the number of rows presented in a resultset.

 



---------------------------------
Sign up to watch the FIFA World Cup video highlights from your desk!

http://fifaworldcup.yahoo.com/fc/en

  Return to Index