sql server的分组排序partition by函数

select id,ROW_NUMBER() over(partition by name order by create_time desc) as row_sort from table

 

来源:https://blog.csdn.net/liuchang19950703/article/details/81003295

posted @ 2020-11-28 18:05  户的博客  阅读(1387)  评论(0编辑  收藏  举报