This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes a simple question about Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: a simple question about "ResultSet"