mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-07 22:02:56 +00:00
41 lines
721 B
Plaintext
41 lines
721 B
Plaintext
CREATE TABLE bigints(b BIGINT TIME INDEX);
|
|
|
|
Affected Rows: 0
|
|
|
|
INSERT INTO bigints values (4611686018427387904), (4611686018427388904), (1);
|
|
|
|
Affected Rows: 3
|
|
|
|
SELECT SUM(b) FROM bigints;
|
|
|
|
+----------------------+
|
|
| SUM(bigints.b) |
|
|
+----------------------+
|
|
| -9223372036854774807 |
|
|
+----------------------+
|
|
|
|
CREATE TABLE doubles(n DOUBLE, ts BIGINT TIME INDEX);
|
|
|
|
Affected Rows: 0
|
|
|
|
INSERT INTO doubles (n, ts) VALUES (9007199254740992, 1), (1, 2), (1, 3), (0, 4);
|
|
|
|
Affected Rows: 4
|
|
|
|
SELECT sum(n) from doubles;
|
|
|
|
+----------------------+
|
|
| SUM(doubles.n) |
|
|
+----------------------+
|
|
| 9.007199254740992e15 |
|
|
+----------------------+
|
|
|
|
DROP TABLE bigints;
|
|
|
|
Affected Rows: 1
|
|
|
|
DROP TABLE doubles;
|
|
|
|
Affected Rows: 1
|
|
|