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