日期:2014-05-17 浏览次数:21008 次
select tt.a,tt.b,tt.num from ( select t.a,t.b,ROW_NUMBER() over(partition by t.a order by t.a) num from test t group by t.a,t.b)tt where tt.num < 6