feat:add tmq alter table option

This commit is contained in:
wangmm0220 2022-07-11 20:03:57 +08:00
parent 5d3e07c022
commit 218c71df6a
1 changed files with 7 additions and 0 deletions

View File

@ -223,6 +223,13 @@ int32_t init_env() {
}
taos_free_result(pRes);
pRes = taos_query(pConn, "alter table n1 comment 'hello'");
if (taos_errno(pRes) != 0) {
printf("failed to alter normal table n1, reason:%s\n", taos_errstr(pRes));
return -1;
}
taos_free_result(pRes);
pRes = taos_query(pConn, "alter table n1 drop column c1");
if (taos_errno(pRes) != 0) {
printf("failed to alter normal table n1, reason:%s\n", taos_errstr(pRes));