over()函数

over()函数的排序函数有哪些

小樊
98
2024-08-15 20:30:38
栏目: 编程语言

over()函数的排序函数有以下几种:

  1. over(order by column_name): 按指定列(column_name)进行升序排序。
  2. over(order by column_name desc): 按指定列(column_name)进行降序排序。
  3. over(order by column_name1, column_name2): 先按列column_name1排序,若列column_name1相同则按照列column_name2进行排序。
  4. over(partition by column_name order by column_name): 按指定列(column_name)进行分组排序。
  5. over(partition by column_name order by column_name desc): 按指定列(column_name)进行分组降序排序。
  6. over(partition by column_name order by column_name1, column_name2): 按指定列(column_name1)进行分组排序,若列column_name1相同则按照列column_name2进行排序。

0
看了该问题的人还看了