mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 06:50:50 +00:00
9 lines
346 B
MySQL
9 lines
346 B
MySQL
|
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;
|