Hive添加表字段
新增字段表
alter table 表名 add columns(字段名 数据类型)
alter table table_name add columns (c_time string comment '当前时间');
-- 正确,添加在最后
alter table table_name change c_time c_time string after address;
-- 正确,移动到指定位置,address字段的后面
Hive更换已有表字段类型
Hive 表修改字段类型
Alter table 表名 change column 原字段名称 现字段名称 数据类型
Alter table table1 change column cell_id cell_id string;