是不是想得到纪录共有多少条?没有什么函数

select count(*) from tb_table;在获得到int count= rs.getInt(1);得到或者对结果集进行循环即 while(rs.next())
 {
i++;
}