Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd390bb6

Browse files
committed
doc: adjust "cities" example to be consistent with other SQL
Reported-by: tom@crystae.netDiscussion:https://postgr.es/m/162345756191.14472.9754568432103008703@wrigleys.postgresql.orgBackpatch-through: 9.6
1 parentc552e17 commitd390bb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎doc/src/sgml/advanced.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
<programlisting>
4848
CREATE VIEW myview AS
49-
SELECTcity, temp_lo, temp_hi, prcp, date, location
49+
SELECTname, 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)

[8]ページ先頭

©2009-2025 Movatter.jp