How to know if we have a result with JDBC ??? [message #91205] |
Tue, 28 May 2002 02:06 |
hug
Messages: 6 Registered: May 2002
|
Junior Member |
|
|
Hi,
I'm actually writing in Java, a application that access a external database. So I use JDBC to access to the data.
I can connect to database, make my query with no problem.
But I have one question ...
How can I know if they are some result associated with one of my query.
For example I make a SELECT statement, and before display the results I want to know if they are some results !!!
I have found one the web some explanations (like use resultset==null or something like that but it doesn't work in my application).
So if anybody know a solution that work all the time, thanks to respond !!! (with some code example if possible)
best regards
Hug
|
|
|
|
|