先执行一次查询:
select count(*)as Count from table // Count为所求
或
select * from table
while(rs.next())
{
Count=rs.getRow(); // Count为所求
}
select count(*)as Count from table // Count为所求
或
select * from table
while(rs.next())
{
Count=rs.getRow(); // Count为所求
}
rs.next() 1000次快?
难道就没有其他办法结果RowCount了吗?
select count(*)as Count from table
这个最快。晕