Moving ResultSet to first
问题 I have a resultset obejct as rs and i used the fragment of code to count the number of rows.. while(rs.next()) count++; and i has to use the same resultset again to retrieve the data. I used the method rs.beforefirst(); but it is not working... control is not entering into while(rs.next()){ cid=rs.getInt(1); taskdate=rs.getString(2); tasktime=rs.getString(3); addr=rs.getString(4); } I has to return 4 rows according to my query.. but it doesn't ??? 回答1: Resultset is the forward only . If you