如题

解决方案 »

  1.   

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

  2.   

    declare @t table(id int)
    insert into @t select 1
    union all select 23
    union all select 22
    union all select 223
    union all select 213
    union all select 22
    union all select 232
    union all select 213
    union all select 223
    union all select 21321
    union all select 23
    union all select 213
    union all select 2
    union all select 2313
    union all select 2
    union all select 231
    union all select 23
    union all select 231
    union all select 21select [id_t]=identity(int,1,1),* into # from @t
    select * from # where id_t between 11 and 15drop table #--如果没有主键
      

  3.   

    有没有更简单的--------------------------------------------------------------------
    MSN -> [email protected]
    QQ -> 64657534
    Email -> [email protected]
    我的BLOG -> http://blog.sina.com.cn/u/1490778575
      

  4.   

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

  5.   

    谢谢--------------------------------------------------------------------
    MSN -> [email protected]
    QQ -> 64657534
    Email -> [email protected]
    我的BLOG -> http://blog.sina.com.cn/u/1490778575