select top 5 * from (select top 20 from table order by F1 Desc)AA

解决方案 »

  1.   

    select top 5 * from tablename where id not in
    (select top 15 * from tablename order by id)
    order by id
      

  2.   

    select IDENTITY(int, 1,1) AS ID_Num,* into #temp from 表
    select * from #temp where ID_Num>10 and ID_Num<=20
      

  3.   

    select top 5 * from tablename where id not in
    (select top 15 id from tablename order by id)
    order by id
      

  4.   

    select top 5 * from (select top 20 * from table order by F1 asc) AA
    order by F1 Desc
      

  5.   

    select top 5 from tabel where id not in (select top 15-1 id from table)
      

  6.   

    select * from a1 as A where 
     (select count(id) from a1 where id <= A.id) 
        between 16 and 20 order by id
      

  7.   

    huxin1012、pengdali、tj_dns
    三位朋友我的答案我验证有效,huxin1012是最后采用的,正在加分,再次感谢!!