hive刪除表和表中的數據

hive刪除表和表中的數據,以及按分區刪除數據code

hive刪除表:

drop table table_name;

hive刪除表中數據:

truncate table table_name;

hive按分區刪除數據:

alter table table_name drop partition (partition_name='分區名')
相關文章
相關標籤/搜索