java学习

java学习

 

每个班的前10名的MySQL 查询方法

  1. select a.class,a.score
  2. from student a
  3. where (select count(*) from student where class=a.class and a.score<score)<3
  4. order by a.class,a.score desc;

posted on 2018-08-09 14:32 杨军威 阅读(513) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

常用链接

留言簿

随笔档案

搜索

最新评论

阅读排行榜

评论排行榜