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

3 lines
263 B
MySQL
Raw Normal View History

2015-04-02 21:10:05 +00:00
SELECT min(ts = toUInt32(toDateTime(toString(ts)))) FROM (SELECT 1000000000 + 1234 * number AS ts FROM system.numbers LIMIT 1000000);
SELECT min(ts = toUInt32(toDateTime(toString(ts)))) FROM (SELECT 10000 + 1234 * number AS ts FROM system.numbers LIMIT 1000000);