mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
10 lines
400 B
SQL
10 lines
400 B
SQL
DROP TABLE IF EXISTS datetime64_index_tbl;
|
|
|
|
CREATE TABLE datetime64_index_tbl(ts DateTime64(3, 'UTC')) ENGINE=MergeTree ORDER BY ts;
|
|
INSERT INTO datetime64_index_tbl(ts) VALUES(toDateTime64('2023-05-27 00:00:00', 3, 'UTC'));
|
|
|
|
SELECT ts FROM datetime64_index_tbl WHERE ts < toDate('2023-05-28');
|
|
SELECT ts FROM datetime64_index_tbl WHERE ts < toDate32('2023-05-28');
|
|
|
|
DROP TABLE datetime64_index_tbl;
|