mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
7 lines
286 B
MySQL
7 lines
286 B
MySQL
|
DROP TABLE IF EXISTS index;
|
||
|
CREATE TABLE index (d Date) ENGINE = MergeTree ORDER BY d;
|
||
|
INSERT INTO index VALUES ('2020-04-07');
|
||
|
SELECT * FROM index WHERE d > toDateTime('2020-04-06 23:59:59');
|
||
|
SELECT * FROM index WHERE identity(d > toDateTime('2020-04-06 23:59:59'));
|
||
|
DROP TABLE index;
|