按每20条分组查询

select (row_number()over(order by dabh)-1)/20[groupby] from v_payroll

 

posted @ 2017-07-28 23:16  hllive  阅读(171)  评论(0)    收藏  举报