mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
13 lines
296 B
SQL
13 lines
296 B
SQL
DROP TABLE IF EXISTS t;
|
|
DROP TABLE IF EXISTS mv;
|
|
DROP TABLE IF EXISTS `.inner.mv`;
|
|
|
|
CREATE TABLE t (x UInt8) ENGINE = Null;
|
|
CREATE MATERIALIZED VIEW mv ENGINE = Null AS SELECT * FROM t;
|
|
|
|
DETACH TABLE mv;
|
|
ATTACH MATERIALIZED VIEW mv ENGINE = Null AS SELECT * FROM t;
|
|
|
|
DROP TABLE t;
|
|
DROP TABLE mv;
|