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

Commit0fada37

Browse files
committed
Update FAQ.
1 parent7e09191 commit0fada37

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

‎doc/FAQ

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -948,19 +948,21 @@ SELECT *
948948

949949
4.24) How do I do an outer join?
950950

951-
PostgreSQL 7.1 and later supports outer joins. Here are two examples:
951+
PostgreSQL 7.1 and later supports outer joins using the SQL standard
952+
syntax. Here are two examples:
952953
SELECT *
953954
FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col);
954955

955956
or
956957
SELECT *
957958
FROM t1 LEFT OUTER JOIN t2 USING (col);
958959

959-
These identical queries join t1.col to t2.col, and return any unjoined
960-
rows in t1. A RIGHT join would return unjoined rows of table t2. A
961-
FULL join would return unjoined rows from t1 and t2. The word OUTER is
962-
optional and is assumed in LEFT, RIGHT, and FULL joins. Ordinary joins
963-
are called INNER joins.
960+
These identical queries join t1.col to t2.col, and also return any
961+
unjoined rows in t1 (those with no match in t2). A RIGHT join would
962+
add unjoined rows of t2. A FULL join would return the matched rows
963+
plus all unjoined rows from t1 and t2. The word OUTER is optional and
964+
is assumed in LEFT, RIGHT, and FULL joins. Ordinary joins are called
965+
INNER joins.
964966

965967
In previous releases, outer joins can be simulated using UNION and NOT
966968
IN. For example, when joining tab1 and tab2, the following query does

‎doc/src/FAQ/FAQ.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,8 +1224,8 @@ <H4><A name="4.23">4.23</A>) Why are my subqueries using
12241224
<H4><Aname="4.24">4.24</A>) How do I do an<I>outer</I> join?<BR>
12251225
</H4>
12261226

1227-
<P>PostgreSQL 7.1 and later supports outer joins. Here are two
1228-
examples:</P>
1227+
<P>PostgreSQL 7.1 and later supports outer joins using the SQL
1228+
standard syntax. Here are twoexamples:</P>
12291229
<PRE>
12301230
SELECT *
12311231
FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col);
@@ -1235,9 +1235,10 @@ <H4><A name="4.24">4.24</A>) How do I do an <I>outer</I> join?<BR>
12351235
SELECT *
12361236
FROM t1 LEFT OUTER JOIN t2 USING (col);
12371237
</PRE>
1238-
These identical queries join t1.col to t2.col, and return any
1239-
unjoined rows in t1. A<SMALL>RIGHT</SMALL> join would return
1240-
unjoined rows of table t2. A<SMALL>FULL</SMALL> join would return
1238+
These identical queries join t1.col to t2.col, and also return any
1239+
unjoined rows in t1 (those with no match in t2). A
1240+
<SMALL>RIGHT</SMALL> join would add unjoined rows of t2. A
1241+
<SMALL>FULL</SMALL> join would return the matched rows plus all
12411242
unjoined rows from t1 and t2. The word<SMALL>OUTER</SMALL> is
12421243
optional and is assumed in<SMALL>LEFT</SMALL>,
12431244
<SMALL>RIGHT</SMALL>, and<SMALL>FULL</SMALL> joins. Ordinary joins

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp