MySQL - using GROUP BY and DESC

前端 未结 5 1805
慢半拍i
慢半拍i 2020-12-31 08:03

In my SQL query I am selecting data with GROUP BY and ORDER BY clauses. The table has the same numbers across multiple rows wi

5条回答
  •  無奈伤痛
    2020-12-31 08:27

    According to the manual you can add desc to the group by list: Example:
    group by item1, item2 desc, item3

    with or without rollup.

    I've tried this and it works in Ubuntu version 5.5.58. The reference page is: https://dev.mysql.com/doc/refman/5.7/en/group-by-modifiers.html

提交回复
热议问题