关于数据库分页
代码:
try{
rsCount=statement.executeQuery(SQLStrCount);
rsCount.next();
intRowCount=rsCount.getInt(1);
rsCount.close();
intPageCount = (intRowCount+intPageSize-1) / intPageSize;//统计总页数
}catch(Exception e){}
分页程序中的intRowCount=rsCount.getInt(1);不是代表取第一栏为int的表格的值吗?
为什么能够统计总行数?