ResultSet has row count value more than Integer.MAX_VALUE. How?

喜夏-厌秋 提交于 2019-12-11 15:57:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!