totalPage : 总页数--
totalPage = (count +GlobalCONST .PAGE_SIZE -1)/GlobalCONST .PAGE_SIZE;
其中count是当前的总记录数。
currPage : 当前页,当为第一页时取值为0
pageNo : 每页记录数
当currPage>0 时有上一页
当currPage<totalPage 时有下一页
select * from (select tab.*,rownum rr from tab where rownum<=pageNo*(currpage+1)) b where b.rr >pageNo*currPage;