I am trying to get the row count of a result set by:
rs.last();
int row_count = rs.getRow();
but im getting an Invalid operation for
PreparedStatement ps = conn.prepareStatement ("SELECT * FROM
EMPLOYEE_TABLE WHERE LASTNAME = ?" ,
ResultSet.TYPE_SCROLL_INSENSITIVE ,
ResultSet.CONCUR_UPDATABLE ,
ResultSet.HOLD_CURSOR_OVER_COMMIT) ;
For prepared statements, you must specify, at a minimum, both the type and the concurrency mode for last() and isLast() to work.