select s.* from ( select *, row_number() over (partition by [分组字段] order by [排序字段]) as 别名 from 表名称 ) s where s.别名 = 1
..
原文地址:https://www.cnblogs.com/salv/p/11832130.html
时间: 2024-11-13 08:41:47
select s.* from ( select *, row_number() over (partition by [分组字段] order by [排序字段]) as 别名 from 表名称 ) s where s.别名 = 1
..
原文地址:https://www.cnblogs.com/salv/p/11832130.html