0

This might be a stupid question but I have spent 2 hours looking for the solution and still not found anything.

I have this :

String query = "SELECT i.id, i.title FROM mil..."'";
ResultSet result = preparedStatement.executeQuery();

And I need the number of results fetched.

How can I do ?

Thank you

Vincent Roye
  • 2,751
  • 7
  • 33
  • 53

1 Answers1

1

The following Stack Overflow question should be able to answer your problem.

How do I get the size of a java.sql.ResultSet?

Community
  • 1
  • 1
Matthew Dally
  • 412
  • 1
  • 6
  • 17