--如果需要生成以积分为最高优先,其次以时间为从高到低为条件生成个排名字段,可用
--ROW_NUMBER() OVER ()函数
select*
from article as art
left join member as member
on art.mid = member.mid
order by art.ftime desc,member.score desc
limit 50
select min(user_integral) from (select top 600 user_integral from members order by user_integral desc)s
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)