你的“记录1”、“记录2”是不是应该写成“字段1”、“字段2”?    select id=identity(int,1,1),* 
    into #t
    from tablename
    order by 字段1,字段2    select a.字段1,a.字段2
    from #t a join 
         (  select 字段1,min(id) as minid
            from #t
            group by 字段1
         ) b
         on a.字段1=b.字段1 and a.id<=b.minid+10    drop table #t