.last()不是得到记录的行数,在jdk文档中如此描述:
public boolean last()
throws SQLException
Moves the cursor to the last row in this ResultSet object.
Returns:
true if the cursor is on a valid row; false if there are no rows in the result set
Throws:
SQLException - if a database access error occurs or the result set type is TYPE_FORWARD_ONLY