Skip to content

Commit 17d3233

Browse files
committed
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.
1 parent 4ec6581 commit 17d3233

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

doc/src/sgml/ref/select.sgml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,8 +1050,13 @@ SELECT name FROM distributors ORDER BY code;
10501050
</para>
10511051

10521052
<para>
1053-
Character-string data is sorted according to the locale-specific
1054-
collation order that was established when the database was created.
1053+
Character-string data is sorted according to the collation that applies
1054+
to the column being sorted. That can be overridden at need by including
1055+
a <literal>COLLATE</> clause in the
1056+
<replaceable class="parameter">expression</replaceable>, for example
1057+
<literal>ORDER BY mycolumn COLLATE "en_US"</>.
1058+
For more information see <xref linkend="sql-syntax-collate-exprs"> and
1059+
<xref linkend="collation">.
10551060
</para>
10561061
</refsect2>
10571062

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy