使用 PARTITION BY 时,在 ORDER BY 子句中是否可以基于多个列进行排序,就像普通的 ORDER BY 语句一样?
SELECT * , ROW_NUMBER() OVER (PARTITION BY Col0 ORDER BY Col1, Col2)
当我 ORDER BY 多于一列时,我似乎遇到了错误
使用 PARTITION BY 时,在 ORDER BY 子句中是否可以基于多个列进行排序,就像普通的 ORDER BY 语句一样?
SELECT * , ROW_NUMBER() OVER (PARTITION BY Col0 ORDER BY Col1, Col2)
当我 ORDER BY 多于一列时,我似乎遇到了错误