projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f73cb55
)
doc: Clarify description of VALUES command
author
Peter Eisentraut
<peter_e@gmx.net>
Fri, 7 Jun 2013 01:03:04 +0000
(21:03 -0400)
committer
Peter Eisentraut
<peter_e@gmx.net>
Fri, 7 Jun 2013 01:03:04 +0000
(21:03 -0400)
Greg Smith
doc/src/sgml/queries.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/queries.sgml
b/doc/src/sgml/queries.sgml
index d7b0d731b9dbf606ca294359f7ca92b48416c6c0..c32c85765188265d24aa620e0709d4b3d39bf0b1 100644
(file)
--- a/
doc/src/sgml/queries.sgml
+++ b/
doc/src/sgml/queries.sgml
@@
-1609,7
+1609,16
@@
SELECT 3, 'three';
<literal>VALUES</> table. The column names are not specified by the
SQL standard and different database systems do it differently, so
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>