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');
|
2015-01-28 02:37:05 +00:00
|
|
|
SELECT k, s FROM (SELECT number AS k FROM system.numbers LIMIT 10) ANY LEFT JOIN join USING k;
|
|
|
|
|
2019-06-07 16:02:24 +00:00
|
|
|
INSERT INTO join VALUES (6, 'ghi');
|
2015-01-28 02:37:05 +00:00
|
|
|
SELECT k, s FROM (SELECT number AS k FROM system.numbers LIMIT 10) ANY LEFT JOIN join USING k;
|
|
|
|
|
2019-06-07 16:02:24 +00:00
|
|
|
DROP TABLE join;
|