sql server 2005版本:
select t.* from (select *, row_number() over (order by ID) rn from A ) t where t.rn between 32 and 40
sql server 2000版本:
select top(10) * from (select top(40) * from A order by ID asc) order by ID desc;
SELECT TOP 10*
FROM record
WHERE (NOT (排序字段 IN
(SELECT TOP 30 排序字段
FROM record)))
sql2000下测试通过