mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
16 lines
580 B
SQL
16 lines
580 B
SQL
DROP TABLE IF EXISTS test;
|
|
CREATE TABLE test (id String, `abc.1` String, `abc.2` String, `abc` String) ENGINE MergeTree order by id;
|
|
DESC TABLE test;
|
|
ALTER TABLE test MODIFY COLUMN `abc.1` String AFTER `abc`;
|
|
DESC TABLE test;
|
|
ALTER TABLE test MODIFY COLUMN `abc.2` String AFTER `abc`;
|
|
DESC TABLE test;
|
|
ALTER TABLE test MODIFY COLUMN `abc` String AFTER `abc.2`;
|
|
DESC TABLE test;
|
|
ALTER TABLE test MODIFY COLUMN `abc` String AFTER `id`;
|
|
DESC TABLE test;
|
|
ALTER TABLE test MODIFY COLUMN `abc` String AFTER `abc.1`;
|
|
DESC TABLE test;
|
|
ALTER TABLE test DROP COLUMN `abc`;
|
|
DESC TABLE test;
|