日期:2014-05-16 浏览次数:20762 次
select * from (select *,rownum rm from tableName where rownum>=max) where rm<=min;
select * from tableName limit min,max;
select top @pagesize * from tablename where id not in (select top @pagesize*(@page-1) id from tablename order by id) order by id
select * from (select *,rownumber() as ROW_NEXT from tablename) where ROW_NEXT between min and max