选择Sql2005分页的方法

选择Sql2005分页的方法

select OID ,Pos from
(
select OID, ROW_NUMBER() OVER (order by OID) as Pos from directoryRights
) as T
where T.Pos > 1 and T.Pos < 10