做个存储过程吧,如果时间有重复,那么就难以判断了:
select id=identity(int,1,1),* into #t from (select * from [table] order by timecolumn ) a 
select * from #t where id between 10 and 20

解决方案 »

  1.   

    select top 11 * from
    (
    select top 20 * 
    from table
    order by [时间] 
    )a
    order by [时间] desc
      

  2.   

    select * from 表 where (id not in (select top 10 * from 表)) and (id in (select top 20 * from 表))order by 日期
    学习up
      

  3.   

    select top 10 * from
    (
    select top 20 * 
    from table
    order by newid()
    )a
    order by [时间] desc
      

  4.   

    select top 10 * from t where time_t not in (select top 10 time_t from t order by time_t) order by time_t
      

  5.   

    Select Top 10 F.*
    From  F    
    Where F.ID NOT IN (Select Top 10 A.ID
    From A
                      Order By A.CreateTime ASC)  --表F中的ID不等于表A中的前10条  
    Order BY F.CreateTime ASC
      

  6.   

    select identity(1,1) as id, * into #temp from 表 order by 日期 asc
    select * from #temp where id > 10 and id < 21
    drop table #temp
      

  7.   

    select top 10 from (select top 20 * from table order by 日期 ) order by 日期 desc