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