--从Table 表中取出第 m 条到第 n 条的记录:(Not In 版本) SELECTTOP n-m+1* FROMTable WHERE (id NOTIN (SELECTTOP m-1 id FROMTable ))
--从TABLE表中取出第m到n条记录 (Exists版本) SELECTTOP n-m+1*FROMTABLEAS a WHERENotExists
(Select*From (SelectTop m-1*FromTABLEorderby id) b Where b.id=a.id ) Orderby id
--m为上标,n为下标,例如取出第8到12条记录,m=8,n=12,Table为表名,Temp为临时表 SelectTop n-m+1*FromTable Where Id>(SelectMax(Id) From
(SelectTop m-1 Id FromTableOrderBy Id Asc) Temp) OrderBy Id Asc
--找出升序的第m到第n条记录,更为笨拙的办法是 Select*From
(SelectTop n-m+1*From (SelectTop n *From 表名 OrderBy id Desc) t1 OrderBy id) t2 OrderBy id