Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6334ef8

Browse files
committed
Document that we don't support ORDER BY with general expressions on
the output of UNION/INTERSECT/EXCEPT.
1 parent005ad6c commit6334ef8

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
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/select.sgml,v 1.35 2000/12/12 05:07:59 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/select.sgml,v 1.36 2001/01/08 21:30:37 tgl Exp $
33
Postgres documentation
44
-->
55

@@ -616,7 +616,12 @@ SELECT title, date_prod + 1 AS newlen FROM films ORDER BY newlen;
616616
<programlisting>
617617
SELECT name FROM distributors ORDER BY code;
618618
</programlisting>
619-
619+
A limitation of this feature is that an ORDER BY clause applying to the
620+
result of a UNION, INTERSECT, or EXCEPT query may only specify an output
621+
column name or number, not an expression.
622+
</para>
623+
624+
<para>
620625
Note that if an ORDER BY item is a simple name that matches both
621626
a result column name and an input column name, ORDER BY will interpret
622627
it as the result column name. This is the opposite of the choice that

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp