mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 11:04:10 +00:00
18 lines
812 B
SQL
18 lines
812 B
SQL
drop table if exists tab_00718;
|
|
create table tab_00718 (a String, b LowCardinality(UInt32)) engine = MergeTree order by a;
|
|
insert into tab_00718 values ('a', 1);
|
|
select *, toTypeName(b) from tab_00718;
|
|
alter table tab_00718 modify column b UInt32;
|
|
select *, toTypeName(b) from tab_00718;
|
|
alter table tab_00718 modify column b LowCardinality(UInt32);
|
|
select *, toTypeName(b) from tab_00718;
|
|
alter table tab_00718 modify column b StringWithDictionary;
|
|
select *, toTypeName(b) from tab_00718;
|
|
alter table tab_00718 modify column b LowCardinality(UInt32);
|
|
select *, toTypeName(b) from tab_00718;
|
|
alter table tab_00718 modify column b String;
|
|
select *, toTypeName(b) from tab_00718;
|
|
alter table tab_00718 modify column b LowCardinality(UInt32);
|
|
select *, toTypeName(b) from tab_00718;
|
|
drop table if exists tab_00718;
|