total rows in table code example
Example: how to get row count
Get the row count of the ResultSet
Move the pointer to the last row and get the row number
rs.last();
int rowCount = rs.getRow();
System.out.println(rowCount);
Get the row count of the ResultSet
Move the pointer to the last row and get the row number
rs.last();
int rowCount = rs.getRow();
System.out.println(rowCount);