按每20条分组查询

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

 

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