mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-21 07:50:49 +00:00
13 lines
477 B
SQL
13 lines
477 B
SQL
DROP TABLE IF EXISTS alter_00665;
|
|
CREATE TABLE alter_00665 (`boolean_false` Nullable(String)) ENGINE = MergeTree ORDER BY tuple();
|
|
|
|
INSERT INTO alter_00665 (`boolean_false`) VALUES (NULL), (''), ('123');
|
|
SELECT * FROM alter_00665;
|
|
SELECT * FROM alter_00665 ORDER BY boolean_false NULLS LAST;
|
|
|
|
ALTER TABLE alter_00665 MODIFY COLUMN `boolean_false` Nullable(UInt8);
|
|
SELECT * FROM alter_00665;
|
|
SELECT * FROM alter_00665 ORDER BY boolean_false NULLS LAST;
|
|
|
|
DROP TABLE alter_00665;
|