mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +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;
|