mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
7 lines
286 B
SQL
7 lines
286 B
SQL
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;
|