I have a small concern about ResultSet
in Java, my question is
Can we know the number of records they have at the time of completing a query?
I want to get this information to be able to perform an action with this amount of records.
So far what I have researched is that with getMetaData()
I could get this number, but, until now I have only been able to extract is the number of columns that the query brings.
The other solution that I have thought is to make a query before the one that brings the data to count the number of records with COUNT()
, but, I do not know before I wanted to know if this is possible.