2022-04-05 23:50:16 +00:00
|
|
|
SET date_time_output_format='iso';
|
2022-04-01 12:13:34 +00:00
|
|
|
drop table if exists t;
|
2022-04-06 00:32:52 +00:00
|
|
|
CREATE TABLE t (a DateTime('UTC'), b String, c String, d String, e Int32) ENGINE = Memory;
|
2022-04-01 12:13:34 +00:00
|
|
|
INSERT INTO t(a, b, c, d ,e) VALUES ('2022-03-31','','','',1);
|
|
|
|
INSERT INTO t(a, b, c, d ,e) VALUES (1648804224,'','','',2);
|
|
|
|
INSERT INTO t(a, b, c, d ,e) VALUES ('2022-03-31 10:18:56','','','',3);
|
2022-04-05 23:50:16 +00:00
|
|
|
INSERT INTO t(a, b, c, d ,e) VALUES ('2022-03-31T10:18:56','','','',4);
|
|
|
|
INSERT INTO t(a, b, c, d ,e) VALUES ('1648804224','','','',5);
|
|
|
|
select a, e from t order by e;
|
|
|
|
drop table if exists t;
|