sort-spec

Specifies a column to sort a query on

Format

{ ColIndex | [ ColQual . ] ColName } { ASC | DESC } { NULLS [FIRST | LAST] }

Remarks

Specifies a column to sort the result set on.

The column can be specified either by its 1-based index or its name.

The keywords ASC and DESC specify whether the sort should be ascending value (ASC) or descending value (DESC).If the ASC or DESC keywords are omitted, ASC is assumed.

By default NULL values are sorted at the low end of the resultset.

The default NULL sorting behaviour can be overriden using NULLS FIRST or NULLS LAST.


Disclaimer

Geo SCADA Expert 2020