您的位置:首页 > 其它

自定义字段做条件

2015-06-25 13:49 357 查看
方法一:
with temTable
as
(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 temp
where temp.paiming = 1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: