java get number of rows in resultset code example
Example 1: number of records in a resultset
resultSet.last();
rows = resultSet.getRow();
resultSet.beforeFirst();
return resultSet;
Example 2: row count in jdbc
Row number always starts with 1
My last rowNumber is my row count
When I move my cursor to the last location to get rowCount