数据:表score
id score1 score2
1 10   30
2 20   20
3 30   10结果:
id rank1 rank2
1  3 1
2  2 2
3  1 3结果中的rank为对应score在上表中的名次