2019-06-07 16:02:24 +00:00
|
|
|
DROP TABLE IF EXISTS join;
|
2015-01-28 02:37:05 +00:00
|
|
|
|
2019-06-07 16:02:24 +00:00
|
|
|
CREATE TABLE join (k UInt64, s String) ENGINE = Join(ANY, LEFT, k);
|
2015-01-28 02:37:05 +00:00
|
|
|
|
2019-06-07 16:02:24 +00:00
|
|
|
INSERT INTO join VALUES (1, 'abc'), (2, 'def');
|
2019-08-29 18:45:34 +00:00
|
|
|
SELECT k, s FROM (SELECT number AS k FROM system.numbers LIMIT 10) js1 ANY LEFT JOIN join USING k;
|
2015-01-28 02:37:05 +00:00
|
|
|
|
2019-06-07 16:02:24 +00:00
|
|
|
INSERT INTO join VALUES (6, 'ghi');
|
2019-08-29 18:45:34 +00:00
|
|
|
SELECT k, s FROM (SELECT number AS k FROM system.numbers LIMIT 10) js1 ANY LEFT JOIN join USING k;
|
2015-01-28 02:37:05 +00:00
|
|
|
|
2019-06-07 16:02:24 +00:00
|
|
|
DROP TABLE join;
|