ClickHouse/tests/queries/0_stateless/00916_add_materialized_column_after.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

9 lines
328 B
SQL

DROP TABLE IF EXISTS add_materialized_column_after;
CREATE TABLE add_materialized_column_after (x UInt32, z UInt64) ENGINE MergeTree ORDER BY x;
ALTER TABLE add_materialized_column_after ADD COLUMN y String MATERIALIZED toString(x) AFTER x;
DESC TABLE add_materialized_column_after;
DROP TABLE add_materialized_column_after;