ORDER BY

更新时间:

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

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