mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
8 lines
243 B
SQL
8 lines
243 B
SQL
DROP TABLE IF EXISTS default;
|
|
|
|
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;
|
|
|
|
DROP TABLE default;
|