摘要: 方式0(mysql8支持,利用窗口函数,优先推荐) SELECT * FROM ( SELECT id, student_id, score, clazz_id, ROW_NUMBER() OVER( PARTITION BY clazz_id ORDER BY clazz_id ASC,score 阅读全文
posted @ 2021-02-03 11:02 Binz 阅读(4064) 评论(0) 推荐(0) 编辑