MySQL - using GROUP BY and DESC

前端 未结 5 1714
慢半拍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:24

    work-around is to re-write the query as:

    SELECT * FROM (SELECT * FROM table ORDER BY time DESC) AS t GROUP BY numbers;
    

提交回复
热议问题