sql
2019-12-10 本文已影响0人
_Syndra
select userUm, max(score) from score where nth=1 group by userUm order by score desc;
score表 外加两个索引:
userUm索引 和 userUm_score _nth 复合索引。
上面sql却没有
select userUm, max(score) from score where nth=1 group by userUm order by score desc;
score表 外加两个索引:
userUm索引 和 userUm_score _nth 复合索引。
上面sql却没有