Home > Database > Mysql Tutorial > hive常用命令

hive常用命令

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:58:04
Original
1255 people have browsed it

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 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-02-25';

4、删除分区

alter table table_name drop partition(dt='2014-03-01');

5、删除表

drop tablename;

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template