oracle 数据库中over使用

直接上代码吧:

over(partition by XXX order by XXX rows between  unbounded preceding and  unbounded following ):

说明:

                  unbounded preceding   表示第一行
                  current row                    表示当前行
                  unbounded following     表示最后一行

注意:这里所谓的第一当前以及最后,都是分组内的 第一行 等,也就是 partition by 分组后的第一行等

猜你喜欢

转载自blog.csdn.net/qq_39354340/article/details/81238356