aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-09-04 08:45:57 +0200
committerPeter Eisentraut <peter@eisentraut.org>2020-09-04 08:45:57 +0200
commit49d7165117893405ae9b5b8d8e7877acff33c0e7 (patch)
tree7b9796b80f4a05bfb326431bcf7fced2d236612a /doc/src
parent79fd620b20b7721c2b591ef495be79b6347286c1 (diff)
downloadpostgresql-49d7165117893405ae9b5b8d8e7877acff33c0e7.tar.gz
postgresql-49d7165117893405ae9b5b8d8e7877acff33c0e7.zip
doc: Change table alias names to lower case in tutorial chapter
This is needlessly different from our usual style otherwise. Author: Jürgen Purtz <juergen@purtz.de> Discussion: https://www.postgresql.org/message-id/flat/158996922318.7035.10603922579567326239@wrigleys.postgresql.org
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/query.sgml14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/src/sgml/query.sgml b/doc/src/sgml/query.sgml
index 497aae416b3..e73e805ec4f 100644
--- a/doc/src/sgml/query.sgml
+++ b/doc/src/sgml/query.sgml
@@ -609,11 +609,11 @@ SELECT *
following query:
<programlisting>
-SELECT W1.city, W1.temp_lo AS low, W1.temp_hi AS high,
- W2.city, W2.temp_lo AS low, W2.temp_hi AS high
- FROM weather W1, weather W2
- WHERE W1.temp_lo &lt; W2.temp_lo
- AND W1.temp_hi &gt; W2.temp_hi;
+SELECT w1.city, w1.temp_lo AS low, w1.temp_hi AS high,
+ w2.city, w2.temp_lo AS low, w2.temp_hi AS high
+ FROM weather w1, weather w2
+ WHERE w1.temp_lo &lt; w2.temp_lo
+ AND w1.temp_hi &gt; w2.temp_hi;
</programlisting>
<screen>
@@ -624,8 +624,8 @@ SELECT W1.city, W1.temp_lo AS low, W1.temp_hi AS high,
(2 rows)
</screen>
- Here we have relabeled the weather table as <literal>W1</literal> and
- <literal>W2</literal> to be able to distinguish the left and right side
+ Here we have relabeled the weather table as <literal>w1</literal> and
+ <literal>w2</literal> to be able to distinguish the left and right side
of the join. You can also use these kinds of aliases in other
queries to save some typing, e.g.:
<programlisting>