mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 11:52:27 +00:00
12 lines
295 B
SQL
12 lines
295 B
SQL
DROP TABLE IF EXISTS test.v1;
|
|
DROP TABLE IF EXISTS test.v2;
|
|
|
|
CREATE VIEW test.v1 AS SELECT 1 FROM (SELECT 1);
|
|
SELECT * FROM test.v1;
|
|
|
|
CREATE VIEW test.v2 AS SELECT number * number FROM (SELECT number FROM system.numbers LIMIT 10);
|
|
SELECT * FROM test.v2;
|
|
|
|
DROP TABLE test.v1;
|
|
DROP TABLE test.v2;
|