aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "a simple question about "ResultSet"" Watch "a simple question about "ResultSet"" New topic
Author

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 return.is 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 rs.next() loop, it is not null.
 
Don't get me started about those stupid light bulbs.
 
subject: a simple question about "ResultSet"
 
Similar Threads
JSP & JDBC
handle empty recordset
Resultset
Problem in getting multiple resultsets from Oracle Stored Procedure
how can show the data in database to jtable??