mysql 分组取每个组的前几名的问题

select * from hotel_addition_orders a where (select count(*) from hotel_addition_orders where hotel_order_id = a.hotel_order_id and type > a.type)<2 order by a.hotel_order_id asc
相关文章
相关标签/搜索