mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 21:02:58 +00:00
* feat: add more info to error messages * feat: store next column id in procedure * fix: update next column id for table info * test: fix add col test * chore: remove location from invalid request error * test: update test * test: fix test
26 lines
409 B
SQL
26 lines
409 B
SQL
CREATE TABLE test(i INTEGER, j TIMESTAMP TIME INDEX);
|
|
|
|
DESC TABLE test;
|
|
|
|
INSERT INTO test VALUES (1, 1), (2, 2);
|
|
|
|
ALTER TABLE test ADD COLUMN k INTEGER;
|
|
|
|
SELECT * FROM test;
|
|
|
|
DESC TABLE test;
|
|
|
|
ALTER TABLE test ADD COLUMN host STRING PRIMARY KEY;
|
|
|
|
SELECT * FROM test;
|
|
|
|
DESC TABLE test;
|
|
|
|
ALTER TABLE test ADD COLUMN idc STRING default 'idc' PRIMARY KEY;
|
|
|
|
SELECT * FROM test;
|
|
|
|
DESC TABLE test;
|
|
|
|
DROP TABLE test;
|