mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
11 lines
293 B
SQL
11 lines
293 B
SQL
drop table if exists tesd_dedupl;
|
|
|
|
create table tesd_dedupl (x UInt32, y UInt32) engine = MergeTree order by x;
|
|
insert into tesd_dedupl values (1, 1);
|
|
insert into tesd_dedupl values (1, 1);
|
|
|
|
OPTIMIZE TABLE tesd_dedupl DEDUPLICATE;
|
|
select * from tesd_dedupl;
|
|
|
|
drop table if exists tesd_dedupl;
|