ClickHouse/dbms/tests/queries/0_stateless/00557_alter_null_storage_tables.sql

10 lines
242 B
MySQL
Raw Normal View History

2018-01-11 19:13:19 +00:00
DROP TABLE IF EXISTS test.null;
CREATE TABLE test.null (x UInt8) ENGINE = Null;
DESCRIBE TABLE test.null;
ALTER TABLE test.null ADD COLUMN y String, MODIFY COLUMN x Int64 DEFAULT toInt64(y);
DESCRIBE TABLE test.null;
DROP TABLE test.null;