mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
6 lines
266 B
MySQL
6 lines
266 B
MySQL
|
DROP TABLE IF EXISTS test_datetime;
|
||
|
CREATE TABLE test_datetime (time DateTime) ENGINE=MergeTree PARTITION BY time ORDER BY time;
|
||
|
INSERT INTO test_datetime (time) VALUES (toDate(18012));
|
||
|
SELECT * FROM test_datetime WHERE time=toDate(18012);
|
||
|
DROP TABLE test_datetime;
|