mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
14 lines
591 B
SQL
14 lines
591 B
SQL
DROP TABLE IF EXISTS nullable_00571;
|
|
CREATE TABLE nullable_00571 (x String) ENGINE = MergeTree ORDER BY x;
|
|
INSERT INTO nullable_00571 VALUES ('hello'), ('world');
|
|
SELECT * FROM nullable_00571;
|
|
ALTER TABLE nullable_00571 ADD COLUMN n Nullable(UInt64);
|
|
SELECT * FROM nullable_00571;
|
|
ALTER TABLE nullable_00571 DROP COLUMN n;
|
|
ALTER TABLE nullable_00571 ADD COLUMN n Nullable(UInt64) DEFAULT NULL;
|
|
SELECT * FROM nullable_00571;
|
|
ALTER TABLE nullable_00571 DROP COLUMN n;
|
|
ALTER TABLE nullable_00571 ADD COLUMN n Nullable(UInt64) DEFAULT 0;
|
|
SELECT * FROM nullable_00571;
|
|
DROP TABLE nullable_00571;
|