Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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