Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b5089e
)
doc: adjust "cities" example to be consistent with other SQL
author
Bruce Momjian
<bruce@momjian.us>
Sat, 3 Jul 2021 00:42:45 +0000
(20:42 -0400)
committer
Bruce Momjian
<bruce@momjian.us>
Sat, 3 Jul 2021 00:42:45 +0000
(20:42 -0400)
Reported-by: tom@crystae.net
Discussion: https://postgr.es/m/
162345756191
.14472.
9754568432103008703
@wrigleys.postgresql.org
Backpatch-through: 9.6
doc/src/sgml/advanced.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/advanced.sgml
b/doc/src/sgml/advanced.sgml
index 5d8a0932f737ac51fdd55bb24912681c2acb2ef6..57c0372d97cb1c2521cf10e8df8ccda118e6666f 100644
(file)
--- a/
doc/src/sgml/advanced.sgml
+++ b/
doc/src/sgml/advanced.sgml
@@
-46,7
+46,7
@@
<programlisting>
CREATE VIEW myview AS
- SELECT
city
, temp_lo, temp_hi, prcp, date, location
+ SELECT
name
, temp_lo, temp_hi, prcp, date, location
FROM weather, cities
WHERE city = name;
@@
-101,12
+101,12
@@
SELECT * FROM myview;
<programlisting>
CREATE TABLE cities (
-
city
varchar(80) primary key,
+
name
varchar(80) primary key,
location point
);
CREATE TABLE weather (
- city varchar(80) references cities(
city
),
+ city varchar(80) references cities(
name
),
temp_lo int,
temp_hi int,
prcp real,