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

Commit36da236

Browse files
committed
In 'Joins between classes' in Section 5 of the tutorial we have, in
the first paragraph: As an example, say we wish to find all the records that are in the temperature range of other records. In effect, we need to compare the temp_lo and temp_hi attributes of each EMP instance to the temp_lo and temp_hi attributes of all other EMP instances.I believe that EMP should read WEATHER, as the example query thatfollows joins WEATHER to itself.EMP is often used in Oracle examples.Regards,GrahamOther RULE cleanups
1 parent1045304 commit36da236

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎doc/src/sgml/query.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/query.sgml,v 1.13 2000/09/29 20:21:34 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/query.sgml,v 1.14 2000/12/12 16:47:52 momjian Exp $
33
-->
44

55
<chapter id="query">
@@ -273,8 +273,8 @@ SELECT * INTO TABLE temp FROM weather;
273273
As an example, say we wish to find all the records that
274274
are in the temperature range of other records. In
275275
effect, we need to compare the temp_lo and temp_hi
276-
attributes of eachEMP instance to the temp_lo and
277-
temp_hi attributes of all otherEMP instances.
276+
attributes of eachWEATHER instance to the temp_lo and
277+
temp_hi attributes of all otherWEATHER instances.
278278
<note>
279279
<para>
280280
This is only a conceptual model. The actual join may

‎doc/src/sgml/ref/create_rule.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.19 2000/10/05 19:48:17 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.20 2000/12/12 16:47:52 momjian Exp $
33
Postgres documentation
44
-->
55

@@ -208,14 +208,14 @@ ON UPDATE TO emp-1.salary WHERE emp-2.name = "Joe"
208208
CREATE RULE bad_rule_combination_1 AS
209209
ON SELECT TO emp
210210
DO INSTEAD
211-
SELECTTO toyemp;
211+
SELECT* FROM toyemp;
212212
</programlisting>
213213

214214
<programlisting>
215215
CREATE RULE bad_rule_combination_2 AS
216216
ON SELECT TO toyemp
217217
DO INSTEAD
218-
SELECTTO emp;
218+
SELECT* FROM emp;
219219
</programlisting>
220220
<para>
221221
This attempt to select from EMP will cause

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp