mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +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;
|