2020-09-15 09:16:48 +00:00
|
|
|
DROP TABLE IF EXISTS join;
|
|
|
|
|
2020-09-18 12:48:55 +00:00
|
|
|
SELECT '----- Default Settings -----';
|
|
|
|
CREATE TABLE join (k UInt64, s String) ENGINE = Join(ANY, LEFT, k);
|
|
|
|
INSERT INTO join VALUES (1,21);
|
|
|
|
DETACH TABLE join;
|
2020-09-19 16:39:47 +00:00
|
|
|
ATTACH TABLE join;
|
2020-09-18 12:48:55 +00:00
|
|
|
SELECT * from join;
|
|
|
|
|
|
|
|
DROP TABLE join;
|
|
|
|
|
2020-09-18 12:58:27 +00:00
|
|
|
SELECT '----- Settings persistent=1 -----';
|
|
|
|
CREATE TABLE join (k UInt64, s String) ENGINE = Join(ANY, LEFT, k) SETTINGS persistent=1;
|
2020-09-18 12:48:55 +00:00
|
|
|
INSERT INTO join VALUES (1,21);
|
|
|
|
DETACH TABLE join;
|
2020-09-19 16:39:47 +00:00
|
|
|
ATTACH TABLE join;
|
2020-09-18 12:48:55 +00:00
|
|
|
SELECT * from join;
|
|
|
|
|
|
|
|
DROP TABLE join;
|
2020-09-15 09:16:48 +00:00
|
|
|
|
2020-09-18 12:58:27 +00:00
|
|
|
SELECT '----- Settings persistent=0 -----';
|
|
|
|
CREATE TABLE join (k UInt64, s String) ENGINE = Join(ANY, LEFT, k) SETTINGS persistent=0;
|
2020-09-18 12:48:55 +00:00
|
|
|
INSERT INTO join VALUES (1,21);
|
2020-09-15 09:16:48 +00:00
|
|
|
DETACH TABLE join;
|
2020-09-19 16:39:47 +00:00
|
|
|
ATTACH TABLE join;
|
2020-09-18 12:48:55 +00:00
|
|
|
SELECT * from join;
|
2020-09-15 09:16:48 +00:00
|
|
|
|
|
|
|
DROP TABLE join;
|