mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
13 lines
323 B
MySQL
13 lines
323 B
MySQL
|
DROP TABLE IF EXISTS test.t;
|
||
|
DROP TABLE IF EXISTS test.mv;
|
||
|
DROP TABLE IF EXISTS test.`.inner.mv`;
|
||
|
|
||
|
CREATE TABLE test.t (x UInt8) ENGINE = Null;
|
||
|
CREATE MATERIALIZED VIEW test.mv AS SELECT * FROM test.t;
|
||
|
|
||
|
DETACH TABLE test.mv;
|
||
|
ATTACH MATERIALIZED VIEW test.mv AS SELECT * FROM test.t;
|
||
|
|
||
|
DROP TABLE test.t;
|
||
|
DROP TABLE test.mv;
|