mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 04:42:56 +00:00
* feat: only allow timestamp data type as time index * test: update sqltest cases, todo: need some fixes * fix: sqlness tests * fix: forgot adding back cte test * chore: style
16 lines
297 B
SQL
16 lines
297 B
SQL
CREATE TABLE test(i INTEGER, j TIMESTAMP TIME INDEX);
|
|
|
|
INSERT INTO test VALUES (1, 1), (2, 2);
|
|
|
|
INSERT INTO test VALUES (3, 3);
|
|
|
|
ALTER TABLE test ADD COLUMN k INTEGER;
|
|
|
|
ALTER TABLE test ADD COLUMN l INTEGER;
|
|
|
|
ALTER TABLE test ADD COLUMN m INTEGER DEFAULT 3;
|
|
|
|
SELECT * FROM test;
|
|
|
|
DROP TABLE test;
|