Commit 58617e4d authored by Peter Eisentraut's avatar Peter Eisentraut

doc: Clarify description of VALUES command

Greg Smith
parent f73cb556
...@@ -1609,7 +1609,16 @@ SELECT 3, 'three'; ...@@ -1609,7 +1609,16 @@ SELECT 3, 'three';
<literal>VALUES</> table. The column names are not specified by the <literal>VALUES</> table. The column names are not specified by the
SQL standard and different database systems do it differently, so SQL standard and different database systems do it differently, so
it's usually better to override the default names with a table alias it's usually better to override the default names with a table alias
list. list, like this:
<programlisting>
=> SELECT * FROM (VALUES (1, 'one'), (2, 'two'), (3, 'three')) AS t (num,letter);
num | letter
-----+--------
1 | one
2 | two
3 | three
(3 rows)
</programlisting>
</para> </para>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment