Note NULLS FIRST/LAST in ORDER BY
This commit is contained in:
parent
798219400a
commit
6b284bfc77
1 changed files with 2 additions and 1 deletions
|
|
@ -695,7 +695,8 @@ user=> (sql/format (-> (select :id
|
||||||
`:order-by` accepts a sequence of one or more ordering
|
`:order-by` accepts a sequence of one or more ordering
|
||||||
expressions. Each ordering expression is either a simple
|
expressions. Each ordering expression is either a simple
|
||||||
SQL entity or a pair of a SQL expression and a direction
|
SQL entity or a pair of a SQL expression and a direction
|
||||||
(which can be `:asc` or `:desc` -- or the symbol equivalent).
|
(which can be `:asc`, `:desc`, `:nulls-first`, `:desc-null-last`,
|
||||||
|
etc -- or the symbol equivalent).
|
||||||
|
|
||||||
If you want to order by an expression, you should wrap it
|
If you want to order by an expression, you should wrap it
|
||||||
as a pair with a direction:
|
as a pair with a direction:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue