mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 20:53:27 +00:00
14 lines
259 B
MySQL
14 lines
259 B
MySQL
|
drop table if exists test.trepl;
|
||
|
create table test.trepl
|
||
|
(
|
||
|
d Date,
|
||
|
a Int32,
|
||
|
b Int32
|
||
|
) engine = ReplacingMergeTree(d, (a,b), 8192);
|
||
|
|
||
|
|
||
|
insert into test.trepl values ('2018-09-19', 1, 1);
|
||
|
select b from test.trepl FINAL prewhere a < 1000;
|
||
|
drop table test.trepl;
|
||
|
|