Skip to content

Commit 58617e4

Browse files
committed
doc: Clarify description of VALUES command
Greg Smith
1 parent f73cb55 commit 58617e4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

doc/src/sgml/queries.sgml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,16 @@ SELECT 3, 'three';
16091609
<literal>VALUES</> table. The column names are not specified by the
16101610
SQL standard and different database systems do it differently, so
16111611
it's usually better to override the default names with a table alias
1612-
list.
1612+
list, like this:
1613+
<programlisting>
1614+
=> SELECT * FROM (VALUES (1, 'one'), (2, 'two'), (3, 'three')) AS t (num,letter);
1615+
num | letter
1616+
-----+--------
1617+
1 | one
1618+
2 | two
1619+
3 | three
1620+
(3 rows)
1621+
</programlisting>
16131622
</para>
16141623

16151624
<para>

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