mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 11:04:10 +00:00
7 lines
186 B
MySQL
7 lines
186 B
MySQL
|
DROP TABLE IF EXISTS test.test;
|
||
|
CREATE TABLE test.test (a UInt8, b UInt8, c UInt16 ALIAS a + b) ENGINE = MergeTree ORDER BY a;
|
||
|
|
||
|
SELECT b FROM test.test PREWHERE c = 1;
|
||
|
|
||
|
DROP TABLE test;
|