oracle分组排序并根据分组插入序号的实例讲解
select row_number() over(partition by bm order by xm) xh, --根据部门分组,按姓名排序 xm, bm from jxd7_lbtz_grlbtz--表名
有个很详细的有关排序分组:row_number() over()函数用法;(分组,排序),partition by
oracle分组排序并根据分组插入序号的实例讲解
select row_number() over(partition by bm order by xm) xh, --根据部门分组,按姓名排序 xm, bm from jxd7_lbtz_grlbtz--表名
有个很详细的有关排序分组:row_number() over()函数用法;(分组,排序),partition by