mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 22:12:21 +00:00
12 lines
349 B
SQL
12 lines
349 B
SQL
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;
|