mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
7 lines
309 B
SQL
7 lines
309 B
SQL
drop table if exists test;
|
|
create table test (id Int32, key String) engine=MergeTree() order by tuple();
|
|
insert into test select number, toString(number) from numbers(1000000);
|
|
set allow_experimental_lightweight_delete=1;
|
|
delete from test where id % 2 = 0 SETTINGS mutations_sync=0;
|
|
select count() from test;
|