📜  如何获取行数 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:17.184000             🧑  作者: Mango

代码示例1
Get the row count of the ResultSet
Move the pointer to the last row and get the row number

  rs.last();
        int rowCount = rs.getRow();
        System.out.println(rowCount);