sql分页函数

来源:互联网 发布:哪里买域名不用备案 编辑:程序博客网 时间:2024/06/06 20:52

--说明:供自己参考

--sqlserver 2005以上版本

select * from(
    select h.id,h.objname, ROW_NUMBER() OVER(order by h.id) as pon from humres h
)as t where t.pon between 1 and 20