mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
12 lines
349 B
MySQL
12 lines
349 B
MySQL
|
drop table if exists tab;
|
||
|
create table tab (x UInt32) engine = MergeTree order by tuple();
|
||
|
|
||
|
insert into tab select number from numbers(10);
|
||
|
|
||
|
set alter_sync = 0;
|
||
|
alter table tab update x = x + sleepEachRow(0.1) where 1;
|
||
|
alter table tab modify column x String;
|
||
|
alter table tab add column y String default x || '_42';
|
||
|
|
||
|
select x, y from tab order by x;
|