1.hive表操作
alter table otheravg_amt change cr_tx_cod cr_tx_amt float;
复制表结构
create table denserank_amt like otheravgrank_amt;
插入语句
hive> insert into table cite select * from tt;
追加数据到cite表格中
hive> insert overwrite table cite select * from tt;
覆盖已经存在的数据
2.hive查询语句
建表
create table otheravg_amt(bus_inst_no string,canal string,