mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-17 21:40:37 +00:00
* feat: support timestamp precision on creating table * fix sqlness * fix: substrait representation of different timestamp precision
8 lines
316 B
SQL
8 lines
316 B
SQL
CREATE TABLE timestamp_with_precision (ts TIMESTAMP(6) TIME INDEX, cnt INT);
|
|
|
|
INSERT INTO timestamp_with_precision(ts,cnt) VALUES ('2023-04-04 08:00:00.0052+0000', 1);
|
|
|
|
INSERT INTO timestamp_with_precision(ts,cnt) VALUES ('2023-04-04 08:00:00.0052+0800', 2);
|
|
|
|
SELECT * FROM timestamp_with_precision ORDER BY ts ASC;
|