ClickHouse/tests/queries/0_stateless/00141_parse_timestamp_as_datetime.sql

8 lines
243 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS default;
2015-04-02 03:32:39 +00:00
CREATE TABLE default (d Date DEFAULT toDate(t), t DateTime) ENGINE = MergeTree(d, t, 8192);
INSERT INTO default (t) VALUES ('1234567890');
SELECT toStartOfMonth(d), toUInt32(t) FROM default;
2015-04-02 03:32:39 +00:00
DROP TABLE default;