时间:2021-07-01 10:21:17 帮助过:31人阅读
1、查看表结构信息 desc formatted table_name; desc table_name; 查看关联文件: desc extended f_tblog_online_mds; 2、查看分区 show partitions table_name; 3、根据分区查询,提高速度 select table_coulm from table_name where partition_name = 2014-
1、查看表结构信息desc extended f_tblog_online_mds;
2、查看分区
show partitions table_name;
3、根据分区查询,提高速度
select table_coulm from table_name where partition_name = '2014-02-25';
4、删除分区
alter table table_name drop partition(dt='2014-03-01');
5、删除表
drop tablename;