mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-08 08:35:20 +00:00
18 lines
473 B
MySQL
18 lines
473 B
MySQL
|
DROP TABLE IF EXISTS test1;
|
||
|
DROP TABLE IF EXISTS test2;
|
||
|
DROP TABLE IF EXISTS mv1;
|
||
|
DROP TABLE IF EXISTS mv2;
|
||
|
|
||
|
CREATE TABLE test1 (a UInt8) ENGINE MergeTree ORDER BY a;
|
||
|
CREATE TABLE test2 (a UInt8) ENGINE MergeTree ORDER BY a;
|
||
|
|
||
|
CREATE MATERIALIZED VIEW mv1 TO test1 AS SELECT a FROM test2;
|
||
|
CREATE MATERIALIZED VIEW mv2 TO test2 AS SELECT a FROM test1;
|
||
|
|
||
|
insert into test1 values (1); -- { serverError 306 }
|
||
|
|
||
|
DROP TABLE test1;
|
||
|
DROP TABLE test2;
|
||
|
DROP TABLE mv1;
|
||
|
DROP TABLE mv2;
|