File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes a simple question about Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "a simple question about "ResultSet"" Watch "a simple question about "ResultSet"" New topic

a simple question about "ResultSet"

feng lee
Ranch Hand

Joined: Oct 29, 2002
Posts: 33
if there no data that is eligible for the where
condition.what dose the query the ResultSet return null?
Bhushan Jawle
Ranch Hand

Joined: Nov 22, 2001
Posts: 249
When you try to iterate over a resultset which has no result , simply it won't enter into loop, it is not null.
I agree. Here's the link:
subject: a simple question about "ResultSet"
It's not a secret anymore!