SELECT ROW_NUMBER() OVER(PARTITION BY [要分组的字段] ORDER BY [排序字段]) idNumber,* FROM [表名] WHERE [字段名]=[字段值]
本文标题:SQL分组并排序
本文链接:https://www.haomeiwen.com/subject/jqnawhtx.html
网友评论