mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 23:10:50 +00:00
12 lines
334 B
MySQL
12 lines
334 B
MySQL
|
DROP TABLE IF EXISTS test.table;
|
||
|
CREATE TABLE test.table (x UInt16) ENGINE = TinyLog;
|
||
|
INSERT INTO test.table SELECT * FROM system.numbers LIMIT 10;
|
||
|
|
||
|
DROP TABLE IF EXISTS test.view;
|
||
|
CREATE VIEW test.view (x UInt64) AS SELECT * FROM test.table;
|
||
|
|
||
|
SELECT x, any(x) FROM test.view GROUP BY x;
|
||
|
|
||
|
DROP TABLE test.view;
|
||
|
DROP TABLE test.table;
|