aspose 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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: executeQuery() issue?