summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/src/sgml/ref/values.sgml7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/src/sgml/ref/values.sgml b/doc/src/sgml/ref/values.sgml
index 4bf7bfdffee..8536d065aad 100644
--- a/doc/src/sgml/ref/values.sgml
+++ b/doc/src/sgml/ref/values.sgml
@@ -198,10 +198,9 @@ UPDATE employees SET salary = salary * v.increase
WHERE employees.depno = v.depno AND employees.sales >= v.target;
</programlisting>
- Note that an <literal>AS</literal> clause is required when <command>VALUES</command>
- is used in a <literal>FROM</literal> clause, just as is true for
- <command>SELECT</command>. It is not required that the <literal>AS</literal> clause
- specify names for all the columns, but it's good practice to do so.
+ Note that if <command>VALUES</command> is used in a <literal>FROM</literal>
+ clause, a table alias is optional. Assigning alias names to the columns
+ of the <command>VALUES</command> list is optional, but is good practice.
(The default column names for <command>VALUES</command> are <literal>column1</literal>,
<literal>column2</literal>, etc. in <productname>PostgreSQL</productname>, but
these names might be different in other database systems.)