ClickHouse/tests/queries/0_stateless/00916_add_materialized_column_after.sql

9 lines
328 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS add_materialized_column_after;
2019-03-15 14:32:34 +00:00
CREATE TABLE add_materialized_column_after (x UInt32, z UInt64) ENGINE MergeTree ORDER BY x;
2020-02-20 09:22:17 +00:00
ALTER TABLE add_materialized_column_after ADD COLUMN y String MATERIALIZED toString(x) AFTER x;
2019-03-15 14:32:34 +00:00
DESC TABLE add_materialized_column_after;
2019-03-15 14:32:34 +00:00
DROP TABLE add_materialized_column_after;