摘要: MySQL8以上版本支持了很多的窗口函数,但是低版本的可能也需要用到row_number()over() select a.u_name, a.class, a.score, if((@class = null) or (@class = a.class),@rownum := @rownum + 阅读全文
posted @ 2023-10-10 14:30 编程小白1024 阅读(717) 评论(0) 推荐(0) 编辑