1.修改表
01.重命名表
hive (default)> alter table dept_partition2 rename to dept_partition3;
02.增加/修改/替换列信息
02-1.添加列
alter table dept_partition add columns(deptdesc string);
02-2.更改列名
hive (default)> alter table dept_partition change column deptdesc desc int;
02-3.替换列
hive (default)> alter table dept_partition replace columns(deptno string, dname
string, loc string);
2.删除表
hive (default)> drop table dept_partition;