阅读背景:

sql遍历所有数据集

来源:互联网 

DECLARE @a int
set @a = 1
while @a < 5
BEGIN
select top(1) * from QPShuGameMatchDB..MatchScoreStatistics
where UserID in 
(
select top (@a) UserID from QPShuGameMatchDB..MatchScoreStatistics order by Score desc 
)
order by Score;
set @a = @a + 1
END
DECLARE @a int
set @a = 1
while @a < 5
BEGIN
selec




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: