• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I Display a count  RSS feed

 
Reggie McDougal
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With out haveing dev enviroment in front of me will rs.getLong(1); return the number of records that meet the criteria?


 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 36656
475
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reggie,
That code will work. However the following line will never throw an exception.

If there aren't any matching rows, the query still returns one row with a value of zero.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!