是不是想得到纪录共有多少条?没有什么函数
用
select count(*) from tb_table;在获得到int count= rs.getInt(1);得到或者对结果集进行循环即 while(rs.next())
{
i++;
}
用
select count(*) from tb_table;在获得到int count= rs.getInt(1);得到或者对结果集进行循环即 while(rs.next())
{
i++;
}
select count(0) from ... where...
rs.getRow();
得到总记录数。
只能有select count(*) from table
rs.getInt(1);