mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
9 lines
206 B
SQL
9 lines
206 B
SQL
CREATE TABLE t (
|
|
c0 DateTime,
|
|
c1 DateTime,
|
|
a DateTime alias toStartOfFifteenMinutes(c0)
|
|
) ENGINE = MergeTree() ORDER BY tuple();
|
|
|
|
ALTER TABLE t MODIFY COLUMN a DateTime ALIAS c1;
|
|
SHOW CREATE t;
|