有一张成绩表,只有两个字段,姓名和成绩。怎样用一个sql语句查询出某个学生的姓名,成绩以及在表中的排名?
select name,score,(select count(score) from course c2 group by score having c2.score<=c.score) from course c where c.name=:name