mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
12 lines
223 B
MySQL
12 lines
223 B
MySQL
|
DROP TABLE IF EXISTS t;
|
||
|
CREATE TABLE t (d Date, z UInt32) ENGINE = MergeTree(d, (z), 1);
|
||
|
|
||
|
INSERT INTO t VALUES ('2017-01-01', 1);
|
||
|
|
||
|
WITH (d < '2018-01-01') AND (d < '2018-01-02') AS x
|
||
|
SELECT 1
|
||
|
FROM t
|
||
|
WHERE x;
|
||
|
|
||
|
DROP TABLE t;
|