mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-07 22:02: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
14 lines
227 B
SQL
14 lines
227 B
SQL
CREATE TABLE test(i TIMESTAMP TIME INDEX, j INTEGER NOT NULL);
|
|
|
|
INSERT INTO test VALUES (1, 1), (2, 2);
|
|
|
|
SELECT * FROM test;
|
|
|
|
ALTER TABLE test DROP COLUMN j;
|
|
|
|
INSERT INTO test VALUES (3);
|
|
|
|
SELECT * FROM test;
|
|
|
|
DROP TABLE test;
|