2024-01-15 17:15:15 +00:00
|
|
|
SET output_format_pretty_color=1;
|
2024-07-12 12:49:26 +00:00
|
|
|
SET enable_analyzer = 1;
|
2023-03-05 20:45:53 +00:00
|
|
|
|
|
|
|
select * from system.one cross join system.one;
|
2019-10-18 16:16:57 +00:00
|
|
|
select * from system.one cross join system.one r;
|
|
|
|
select * from system.one l cross join system.one;
|
|
|
|
select * from system.one left join system.one using dummy;
|
|
|
|
select dummy from system.one left join system.one using dummy;
|
|
|
|
|
|
|
|
USE system;
|
|
|
|
|
|
|
|
SELECT dummy FROM one AS A JOIN one ON A.dummy = one.dummy;
|
|
|
|
SELECT dummy FROM one JOIN one AS A ON A.dummy = one.dummy;
|
2023-03-05 20:45:53 +00:00
|
|
|
SELECT dummy FROM one l JOIN one r ON dummy = r.dummy;
|
|
|
|
SELECT dummy FROM one l JOIN one r ON one.dummy = r.dummy;
|
2024-10-07 15:09:35 +00:00
|
|
|
SELECT dummy FROM one l JOIN one r ON l.dummy = dummy;
|
|
|
|
SELECT dummy FROM one l JOIN one r ON l.dummy = one.dummy;
|
2019-10-18 16:16:57 +00:00
|
|
|
|
2019-10-18 17:09:17 +00:00
|
|
|
SELECT * from one
|
|
|
|
JOIN one A ON one.dummy = A.dummy
|
|
|
|
JOIN one B ON one.dummy = B.dummy
|
|
|
|
FORMAT PrettyCompact;
|
|
|
|
|
|
|
|
SELECT * from one A
|
|
|
|
JOIN system.one one ON A.dummy = one.dummy
|
|
|
|
JOIN system.one two ON A.dummy = two.dummy
|
|
|
|
FORMAT PrettyCompact;
|
2019-10-24 13:04:50 +00:00
|
|
|
|
|
|
|
SELECT one.dummy FROM one AS A JOIN (SELECT 0 AS dummy) B USING dummy;
|