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 executeQuery()  issue? 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 "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
 
 
subject: executeQuery() issue?