sql裏distinct後,沒辦法order by能夠用min()解決。sql
SELECT 字段名 FROM dd_deviceinfo_copy GROUP BY 字段名 ORDER BY MIN(id)spa