mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
11 lines
325 B
SQL
11 lines
325 B
SQL
DROP TABLE IF EXISTS t;
|
|
CREATE TABLE t (x Decimal(18, 3)) ENGINE = MergeTree ORDER BY x;
|
|
INSERT INTO t VALUES (1.1);
|
|
SELECT * FROM t WHERE toUInt64(x) = 1;
|
|
DROP TABLE t;
|
|
|
|
CREATE TABLE t (x DateTime64(3)) ENGINE = MergeTree ORDER BY x;
|
|
INSERT INTO t VALUES (1000);
|
|
SELECT x::UInt64 FROM t WHERE toUInt64(x) = 1;
|
|
DROP TABLE t;
|