mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
12 lines
398 B
SQL
12 lines
398 B
SQL
DROP TABLE IF EXISTS join;
|
|
|
|
CREATE TABLE join (k UInt64, s String) ENGINE = Join(ANY, LEFT, k);
|
|
|
|
INSERT INTO join VALUES (1, 'abc'), (2, 'def');
|
|
SELECT k, s FROM (SELECT number AS k FROM system.numbers LIMIT 10) js1 ANY LEFT JOIN join USING k;
|
|
|
|
INSERT INTO join VALUES (6, 'ghi');
|
|
SELECT k, s FROM (SELECT number AS k FROM system.numbers LIMIT 10) js1 ANY LEFT JOIN join USING k;
|
|
|
|
DROP TABLE join;
|