标签:oracle image 顺序 line src code nbsp number art
row_number() OVER (PARTITION BY COL1 ORDER BY COL2)
表示根据COL1分组,在分组内部根据COL2排序,而此函数计算的值就表示每组内部排序后的顺序编号
select departmentid,workcode ,ROW_NUMBER() OVER (partition by departmentid ORDER BY workcode asc) line from hrmresource
来源:https://jingyan.baidu.com/article/9989c74604a644f648ecfef3.html
标签:oracle image 顺序 line src code nbsp number art
原文地址:https://www.cnblogs.com/ooo0/p/13353835.html