File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes executeQuery()  issue? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "executeQuery()  issue?" Watch "executeQuery()  issue?" New topic
Author

executeQuery() issue?

kiran kumar
Greenhorn

Joined: May 24, 2008
Posts: 18
Hi,
what happens when we executeQuery() if no data availabe in the tables?


Thanks & Regards,<br />Bhuvan Samrat.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

That depends on what the query does!


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
kiran kumar
Greenhorn

Joined: May 24, 2008
Posts: 18
If I use select statement than what happens?
imaya Munusamy
Greenhorn

Joined: May 19, 2008
Posts: 20
Originally posted by rahul dravid:
If I use select statement than what happens?


It will return ResultSet Object but the ResultSet.next() method will return false
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: executeQuery() issue?
 
Similar Threads
SQL statements
Query Execution Time.
executeUpdate
how to get the next sequence number ..
Counting number of records in result set