mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-07 16:14:52 +00:00
11 lines
293 B
MySQL
11 lines
293 B
MySQL
|
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;
|