diff options
author | Bruce Momjian <bruce@momjian.us> | 2021-07-02 20:42:45 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2021-07-02 20:42:45 -0400 |
commit | 6cfa2f99013adf23953278f4feb6916c59feb292 (patch) | |
tree | e52b3fba5240653c5907d1f25dbea71eb56e4975 | |
parent | 0b5089e8c9795cd9611ef5dfee756c97e14cfe75 (diff) |
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
-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 5d8a0932f73..57c0372d97c 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, |