select userUm, max(score) from score where nth=1 group by userUm order by score desc;
score表 外加兩個(gè)索引:
userUm索引 和 userUm_score _nth 復(fù)合索引坡氯。
上面sql卻沒有
select userUm, max(score) from score where nth=1 group by userUm order by score desc;
score表 外加兩個(gè)索引:
userUm索引 和 userUm_score _nth 復(fù)合索引坡氯。
上面sql卻沒有