This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a simple question about "ResultSet"

 
feng lee
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if there no data that is eligible for the where
condition.what dose the query return.is the ResultSet return null?
 
Bhushan Jawle
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you try to iterate over a resultset which has no result , simply it won't enter into rs.next() loop, it is not null.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic