ClickHouse/tests/queries/0_stateless/02908_alter_column_alias.sql
2023-11-09 07:07:41 +00:00

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;