Hive添加表字段到指定位置

alter table table_name add columns (c_time string comment '当前时间'); -- 正确,添加在最后
alter table table_name change c_time c_time string after address ;  -- 正确,移动到指定位置,address字段的后面
posted @ 2021-04-23 15:20  swordspoet  阅读(1377)  评论(0编辑  收藏  举报