问题
I have the following code:
//rs is a ResultSet from a preparedStatement
rs.last();
this.resultCount = rs.getRow();
rs.beforeFirst();
If I execute a sql query which returns me more than Integer.MAX_VALUE rows back, what behaviour have then getRow which returns an integer value? And how can I get there the rowCount as a long value ?
来源:https://stackoverflow.com/questions/58071915/resultset-has-row-count-value-more-than-integer-max-value-how