1.oracle分页
select * from (select 表名 .*,rownum rc from 表名 where rownum<=endrow) a where a.rc>=startrow;
2.mysql数据库分页
select * from 表名 limit startrow,pagesize; (pagesize为每页显示的记录条数)
3.通用模式
select * from (select * from student where sid not in (select sid from student where rownum<=(currentpage-1)*pagesize) ) where rownum <=pagesize;