diff options
author | Bruce Momjian | 2021-07-03 00:42:46 +0000 |
---|---|---|
committer | Bruce Momjian | 2021-07-03 00:42:46 +0000 |
commit | d390bb62a6332f8a913c2c2021d56d6dba5a1dce (patch) | |
tree | f5c6146cb5e4026b9dff97e55acdfdd4624ffc34 | |
parent | c552e171d16e461c7af60cfe1a891c87be9cbbbf (diff) |
doc: adjust "cities" example to be consistent with other SQL
Reported-by: [email protected]
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 9.6
-rw-r--r-- | doc/src/sgml/advanced.sgml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/advanced.sgml b/doc/src/sgml/advanced.sgml index 2d4ab85d45..71ae423f63 100644 --- 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, |