over()函數(shù)的排序函數(shù)有以下幾種:
- over(order by column_name): 按指定列(column_name)進行升序排序。
- over(order by column_name desc): 按指定列(column_name)進行降序排序。
- over(order by column_name1, column_name2): 先按列column_name1排序,若列column_name1相同則按照列column_name2進行排序。
- over(partition by column_name order by column_name): 按指定列(column_name)進行分組排序。
- over(partition by column_name order by column_name desc): 按指定列(column_name)進行分組降序排序。
- over(partition by column_name order by column_name1, column_name2): 按指定列(column_name1)進行分組排序,若列column_name1相同則按照列column_name2進行排序。