2019-06-07 15:41:24 +00:00
|
|
|
DROP TABLE IF EXISTS mt_00168;
|
|
|
|
DROP TABLE IF EXISTS mt_00168_buffer;
|
|
|
|
CREATE TABLE mt_00168 (EventDate Date, UTCEventTime DateTime, MoscowEventDate Date DEFAULT toDate(UTCEventTime)) ENGINE = MergeTree(EventDate, UTCEventTime, 8192);
|
2019-06-07 16:02:24 +00:00
|
|
|
CREATE TABLE mt_00168_buffer AS mt_00168 ENGINE = Buffer(currentDatabase(), mt_00168, 16, 10, 100, 10000, 1000000, 10000000, 100000000);
|
2019-06-07 15:41:24 +00:00
|
|
|
DESC TABLE mt_00168;
|
|
|
|
DESC TABLE mt_00168_buffer;
|
|
|
|
INSERT INTO mt_00168 (EventDate, UTCEventTime) VALUES ('2015-06-09', '2015-06-09 01:02:03');
|
|
|
|
SELECT * FROM mt_00168_buffer;
|
|
|
|
INSERT INTO mt_00168_buffer (EventDate, UTCEventTime) VALUES ('2015-06-09', '2015-06-09 01:02:03');
|
|
|
|
SELECT * FROM mt_00168_buffer;
|
|
|
|
DROP TABLE mt_00168_buffer;
|
|
|
|
DROP TABLE mt_00168;
|