oracle之分页查询
html代码写不上这这里写下实现思路吧 首先写我们基础的分页查询语句 select*from(select a1.*,rownum rn from (select *from emp order by deptno asc) a1 where rownum<=10)where rn>=5 其次 一.在上边的基础上添加三个变量 pageCount rowCount pageSize 二.我们通过聚合函数count查找出rowCount再通过rowCount和pageSize获得pageCount总页数 然后通过总页数 添加 访问页码的超连接 rs = stmt.executeQuery("select count(*)from emp"); if (rs.next()) { 1. //得到rowCount &nbs