mirror of
https://github.com/postgres/postgres.git
synced 2026-02-13 15:53:13 -05:00
Update statement about sorting of character-string data.
The sort order is no longer fixed at database creation time, but can be controlled via COLLATE. Noted by Thomas Kellerer.
This commit is contained in:
parent
4ec6581c0c
commit
17d3233e1b
1 changed files with 7 additions and 2 deletions
|
|
@ -1050,8 +1050,13 @@ SELECT name FROM distributors ORDER BY code;
|
|||
</para>
|
||||
|
||||
<para>
|
||||
Character-string data is sorted according to the locale-specific
|
||||
collation order that was established when the database was created.
|
||||
Character-string data is sorted according to the collation that applies
|
||||
to the column being sorted. That can be overridden at need by including
|
||||
a <literal>COLLATE</> clause in the
|
||||
<replaceable class="parameter">expression</replaceable>, for example
|
||||
<literal>ORDER BY mycolumn COLLATE "en_US"</>.
|
||||
For more information see <xref linkend="sql-syntax-collate-exprs"> and
|
||||
<xref linkend="collation">.
|
||||
</para>
|
||||
</refsect2>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue