ResultSet has a null value...

From: leni (nocebo_at_wp.pl)
Date: 02/10/05


Date: 10 Feb 2005 01:37:56 -0800

Hello, I need your help, please...

I have a following code in my application:
PreparedStatement pstmt = con.prepareStatement(
          "SELECT * FROM USERS WHERE LOGIN = ?");
        pstmt.setRef(1, login);
        ResultSet rs2 = pstmt.executeQuery();
I want to get all rows from the table MEETINGS for certain user whos
got an unique login. But for some users (logins) there are no meetings
(no rows) in the table, so in this case ResultSet should give a "null"
value in return.
My question is how to check if ResultSet has null value?

Thank you in advance,

Paulina