public int getRow()
           throws SQLException
Retrieves the current row number. The first row is number 1, the second number 2, and so on. 所以你没有rs.next()过的话,当然应该是0