sql 按字段分组后取日期最新的一条

    xiaoxiao2026-09-27  11

    select  t.*          from (select a.*, row_number() over(partition by 需要分组的字段 order by 更新时间 desc) rw                  from 表 a) t         where t.rw = 1
    转载请注明原文地址: https://ju.6miu.com/read-1312375.html
    最新回复(0)