摘要:
一.整排 要求:根据score进行排名,分数相同,名次相同,且连续 表如下图: sql语句: 方法一:select a.score, (select count(distinct b.score) from test01 b where b.score >=a.score) as rank1 fro 阅读全文
摘要:
一.从test02表中查询每个uid最早登录的前2天 表如下图所示: select * from (select uid,day, @ROW := case when @uuid=uid then @ROW+1 else 1 END rn, @uuid:=uid from (select uid,d 阅读全文