2021-11-08 12:44:13 +00:00
|
|
|
1
|
|
|
|
1
|
|
|
|
1
|
|
|
|
1
|
|
|
|
1
|
|
|
|
1
|
2022-05-19 13:17:14 +00:00
|
|
|
1
|
2021-11-08 12:44:13 +00:00
|
|
|
- ON NULL -
|
|
|
|
- inner -
|
|
|
|
- left -
|
|
|
|
1 0
|
|
|
|
2 0
|
|
|
|
- right -
|
|
|
|
0 2
|
|
|
|
0 3
|
|
|
|
- full -
|
|
|
|
0 2
|
|
|
|
0 3
|
|
|
|
1 0
|
|
|
|
2 0
|
|
|
|
- inner -
|
|
|
|
- left -
|
|
|
|
1 \N
|
|
|
|
2 \N
|
|
|
|
- right -
|
|
|
|
\N 2
|
|
|
|
\N 3
|
|
|
|
- full -
|
|
|
|
\N 2
|
|
|
|
\N 3
|
|
|
|
1 \N
|
|
|
|
2 \N
|
2023-05-11 15:12:46 +00:00
|
|
|
2 2
|
|
|
|
2 2
|
|
|
|
-- { echoOn }
|
|
|
|
SELECT * FROM t1 LEFT JOIN t2 ON t1.id = t2.id AND 1 = 1 SETTINGS allow_experimental_analyzer = 1;
|
|
|
|
1 0
|
|
|
|
2 2
|
|
|
|
SELECT * FROM t1 RIGHT JOIN t2 ON t1.id = t2.id AND 1 = 1 SETTINGS allow_experimental_analyzer = 1;
|
|
|
|
2 2
|
|
|
|
0 3
|
|
|
|
SELECT * FROM t1 FULL JOIN t2 ON t1.id = t2.id AND 1 = 1 SETTINGS allow_experimental_analyzer = 1;
|
|
|
|
1 0
|
|
|
|
2 2
|
|
|
|
0 3
|
|
|
|
SELECT * FROM t1 LEFT JOIN t2 ON t1.id = t2.id AND 1 = 2 SETTINGS allow_experimental_analyzer = 1;
|
|
|
|
1 0
|
|
|
|
2 0
|
|
|
|
SELECT * FROM t1 RIGHT JOIN t2 ON t1.id = t2.id AND 1 = 2 SETTINGS allow_experimental_analyzer = 1;
|
|
|
|
0 2
|
|
|
|
0 3
|
|
|
|
SELECT * FROM t1 FULL JOIN t2 ON t1.id = t2.id AND 1 = 2 SETTINGS allow_experimental_analyzer = 1;
|
|
|
|
1 0
|
|
|
|
2 0
|
|
|
|
0 2
|
|
|
|
0 3
|