select t.* from business_order t
where t.id_ = (select o.id_ from business_order o where o.type_ = t.type_ ORDER BY o.create_time_ DESC LIMIT 1)
分组,按照日期排序,获取每组最一条数据
最新推荐文章于 2023-07-21 14:45:48 发布
select t.* from business_order t
where t.id_ = (select o.id_ from business_order o where o.type_ = t.type_ ORDER BY o.create_time_ DESC LIMIT 1)