欢迎投稿

今日深度:

sql遍历所有数据集,sql遍数据

sql遍历所有数据集,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

www.htsjk.Com true http://www.htsjk.com/shujukunews/8987.html NewsArticle sql遍历所有数据集,sql遍数据 DECLARE @a intset @a = 1while @a 5BEGINselect top(1) * from QPShuGameMatchDB..MatchScoreStatisticswhere UserID in (select top (@a) UserID from QPShuGameMatchDB..MatchScoreStatistics order by Score des...
相关文章
    暂无相关文章
评论暂时关闭