摘要: 1.排序加分组。 select id,name,updateTime from ( select id,name,updateTime from table_user -- 注意这里排序列要符合实际要筛的业务 order by id,updateTime desc ) t group by t.id 阅读全文
posted @ 2022-05-26 22:56 对月当歌 阅读(745) 评论(0) 推荐(0)