mysql取內容時先order by後group by

在mysql裏取數據時怎麼先order by後group by?其實很簡單,sql語句以下:mysql select count(count_filed) from (select * from table order by order_by_filed) table group by group_by_field;sql 這樣就能夠實現對group by裏的內容排序。post 實質是多層嵌套及子
相關文章
相關標籤/搜索