I'm trying to get the row count from ResultSet/ResultSetMetaData but its not giving row count methods. Can anyone help to find the row count of resultSet?
I took all the value from database table Using selenium.
I'm trying to get the row count from ResultSet/ResultSetMetaData but its not giving row count methods. Can anyone help to find the row count of resultSet?
I took all the value from database table Using selenium.
resultSet.last();
int size = resultSet.getRow();
resultSet.beforeFirst();
System.out.println("row size is" + size);
But will be better to use SELECT COUNT(*) FROM table