阿里云首页 云原生数仓 AnalyticDB MySQL

ORDER BY

ORDER BY子句用于对查询结果集进行排序,ORDER BY中每个表达式由列名或列序号(从1开始)组成。

  1. [ ORDER BY expression
  2. [ ASC | DESC ]
  3. [ NULLS FIRST | NULLS LAST ]
  4. [ LIMIT { count | ALL } ]