溫馨提示×

over()函數(shù)的排序函數(shù)有哪些

小樊
97
2024-08-15 20:30:38
欄目: 編程語言

over()函數(shù)的排序函數(shù)有以下幾種:

  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