0

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.

tsr_qa
  • 633
  • 3
  • 9
  • 27

1 Answers1

2
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

Senior Pomidor
  • 1,823
  • 1
  • 14
  • 23