mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-25 01:10:37 +00:00
* test: Sqlness tests for distribute mode * ci * fix: resolve PR comments * fix: resolve PR comments
36 lines
684 B
Plaintext
36 lines
684 B
Plaintext
CREATE TABLE t(i INTEGER, j BIGINT TIME INDEX);
|
|
|
|
Affected Rows: 0
|
|
|
|
DESC TABLE t;
|
|
|
|
+-------+-------+------+---------+---------------+
|
|
| Field | Type | Null | Default | Semantic Type |
|
|
+-------+-------+------+---------+---------------+
|
|
| i | Int32 | YES | | VALUE |
|
|
| j | Int64 | NO | | TIME INDEX |
|
|
+-------+-------+------+---------+---------------+
|
|
|
|
INSERT INTO TABLE t VALUES (1, 1), (3, 3), (NULL, 4);
|
|
|
|
Affected Rows: 3
|
|
|
|
SELECT * from t;
|
|
|
|
+---+---+
|
|
| i | j |
|
|
+---+---+
|
|
| 1 | 1 |
|
|
| 3 | 3 |
|
|
| | 4 |
|
|
+---+---+
|
|
|
|
ALTER TABLE t RENAME new_table;
|
|
|
|
Error: 1003(Internal), Operation rename table not implemented yet
|
|
|
|
DROP TABLE t;
|
|
|
|
Affected Rows: 1
|
|
|