Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d390bb6

Browse files
committed
doc: adjust "cities" example to be consistent with other SQL
Reported-by: tom@crystae.net Discussion: https://postgr.es/m/162345756191.14472.9754568432103008703@wrigleys.postgresql.org Backpatch-through: 9.6
1 parent c552e17 commit d390bb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/sgml/advanced.sgml

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
<programlisting>
4848
CREATE VIEW myview AS
49-
SELECT city, temp_lo, temp_hi, prcp, date, location
49+
SELECT name, temp_lo, temp_hi, prcp, date, location
5050
FROM weather, cities
5151
WHERE city = name;
5252

@@ -101,12 +101,12 @@ SELECT * FROM myview;
101101

102102
<programlisting>
103103
CREATE TABLE cities (
104-
city varchar(80) primary key,
104+
name varchar(80) primary key,
105105
location point
106106
);
107107

108108
CREATE TABLE weather (
109-
city varchar(80) references cities(city),
109+
city varchar(80) references cities(name),
110110
temp_lo int,
111111
temp_hi int,
112112
prcp real,

0 commit comments

Comments
 (0)