mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 01:41:59 +00:00
30 lines
1.1 KiB
SQL
30 lines
1.1 KiB
SQL
SET allow_experimental_analyzer = 1;
|
|
|
|
select * from system.one cross join system.one;
|
|
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;
|
|
SELECT dummy FROM one l JOIN one r ON dummy = r.dummy;
|
|
SELECT dummy FROM one l JOIN one r ON l.dummy = dummy; -- { serverError 403 }
|
|
SELECT dummy FROM one l JOIN one r ON one.dummy = r.dummy;
|
|
SELECT dummy FROM one l JOIN one r ON l.dummy = one.dummy; -- { serverError 403 }
|
|
|
|
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;
|
|
|
|
-- SELECT one.dummy FROM one AS A FULL JOIN (SELECT 0 AS dymmy) AS one USING dummy;
|
|
SELECT one.dummy FROM one AS A JOIN (SELECT 0 AS dummy) B USING dummy;
|