mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
31 lines
751 B
SQL
31 lines
751 B
SQL
-- Tags: no-parallel
|
|
|
|
DROP TABLE IF EXISTS join;
|
|
|
|
SELECT '----- Default Settings -----';
|
|
CREATE TABLE join (k UInt64, s String) ENGINE = Join(ANY, LEFT, k);
|
|
INSERT INTO join VALUES (1,21);
|
|
DETACH TABLE join;
|
|
ATTACH TABLE join;
|
|
SELECT * from join;
|
|
|
|
DROP TABLE join;
|
|
|
|
SELECT '----- Settings persistent=1 -----';
|
|
CREATE TABLE join (k UInt64, s String) ENGINE = Join(ANY, LEFT, k) SETTINGS persistent=1;
|
|
INSERT INTO join VALUES (1,21);
|
|
DETACH TABLE join;
|
|
ATTACH TABLE join;
|
|
SELECT * from join;
|
|
|
|
DROP TABLE join;
|
|
|
|
SELECT '----- Settings persistent=0 -----';
|
|
CREATE TABLE join (k UInt64, s String) ENGINE = Join(ANY, LEFT, k) SETTINGS persistent=0;
|
|
INSERT INTO join VALUES (1,21);
|
|
DETACH TABLE join;
|
|
ATTACH TABLE join;
|
|
SELECT * from join;
|
|
|
|
DROP TABLE join;
|