id
|
name
|
1
|
t1
|
2
|
t2
|
4 |
t4
|
id
|
age
|
1
|
18
|
2
|
20 |
3
|
19
|
id
|
name
|
id
|
age
|
1
|
t1
|
1
|
18
|
2
|
t2
|
2
|
20
|
4
|
t4
|
NULL |
NULL
|
註釋:TableA(基表)中全部的行列都顯示了,第三行的條件不匹配全部TableB(外表)的值都爲NULL。sql
id
|
name
|
id
|
age
|
1
|
t1
|
1
|
18
|
2
|
t2
|
2
|
20
|
NULL
|
NULL
|
3 |
19
|
id
|
name
|
id
|
age
|
1
|
t1
|
1
|
18
|
2
|
t2
|
2
|
20
|
NULL | NULL | 3 |
19
|
4 | t4 |
NULL
|
NULL |
註釋:TableA和TableB的全部行列都顯示了,條件不匹配的行的值爲NULL測試
id
|
name
|
id
|
age
|
1
|
t1
|
1
|
18
|
2
|
t2
|
2
|
20
|
id
|
name
|
id
|
age
|
1
|
t1
|
1
|
18
|
2
|
t2
|
1
|
18
|
4
|
t4
|
1
|
18
|
1
|
t1
|
2
|
20
|
2
|
t2
|
2
|
20
|
4
|
t4
|
2
|
20
|
1
|
t1
|
3
|
19
|
2
|
t2
|
3
|
19
|
4
|
t4
|
3
|
19
|