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
相關文章
相關標籤/搜索