L
leni
Hello,
I need help, please!
I have a following code:
PreparedStatement pstmt = con.prepareStatement(
"SELECT * FROM MEETINGS WHERE LOGIN = ?");
pstmt.setRef(1, login);
ResultSet rs2 = pstmt.executeQuery();
I want to get all rows from table MEETINGS which represents user's
meetings. But not for every login (user) there are meetings in the
table, so ResultSet in this case should have "null" value... How to
check if ResultsSet retunes null value (no rows in the table)?
Than you in advance,
Paulina
I need help, please!
I have a following code:
PreparedStatement pstmt = con.prepareStatement(
"SELECT * FROM MEETINGS WHERE LOGIN = ?");
pstmt.setRef(1, login);
ResultSet rs2 = pstmt.executeQuery();
I want to get all rows from table MEETINGS which represents user's
meetings. But not for every login (user) there are meetings in the
table, so ResultSet in this case should have "null" value... How to
check if ResultsSet retunes null value (no rows in the table)?
Than you in advance,
Paulina