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

9 lines
346 B
MySQL
Raw Normal View History

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