mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
9 lines
206 B
MySQL
9 lines
206 B
MySQL
|
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;
|