/** * Retrieves the current row number. The first row is number 1, the * second number 2, and so on. * * @return the current row number; <code>0</code> if there is no current row * @exception SQLException if a database access error occurs * @since 1.2 */ 第一行是 1,第二行是 2 ... 所以rs.last.然后getrow就是最后一行.也就是行数了 :)
* Retrieves the current row number. The first row is number 1, the
* second number 2, and so on.
*
* @return the current row number; <code>0</code> if there is no current row
* @exception SQLException if a database access error occurs
* @since 1.2
*/
第一行是 1,第二行是 2 ... 所以rs.last.然后getrow就是最后一行.也就是行数了 :)