自定义字段做条件

来源:互联网 发布:儿童玩具推荐知乎 编辑:程序博客网 时间:2024/05/13 20:57
方法一:
with temTableas(select *,ROW_NUMBER() over(order by Score desc) as paiming from QPShuGameMatchDB..MatchScoreStatistics)select * from temTable where temTable.paiming=1
方法二:select * from (select *,ROW_NUMBER() over(order by Score desc) as paiming from QPShuGameMatchDB..MatchScoreStatistics)as tempwhere temp.paiming = 1

0 0
原创粉丝点击