ROW_NUMBER()没有在SQL [英] ROW_NUMBER() without over in SQL
本文介绍了ROW_NUMBER()没有在SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在SQL中使用 ROW_NUMBER()
,而不使用 OVER
,因为我想使用排序。
Is there any way to use ROW_NUMBER()
in SQL without using OVER
, because I want to use sorting.
我有一个网格,有多个可排序的列,可配置的行。
I have a Grid with multiple sortable columns with configurable rows. In my scenario order by is variable that's why I am not able to put order by using ROWNUM.
推荐答案
select ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) as number from Task order by RuleId
这篇关于ROW_NUMBER()没有在SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文