命令如下:

增加分区

alter table my_partition_test_table if not exists add partition (p_hour='2017113003', p_city='573', p_loctype='MHA');

删除分区

ALTER TABLE my_partition_test_table DROP IF EXISTS PARTITION (p_loctype='MHA');

 

相关文章:

  • 2021-11-21
  • 2021-12-10
  • 2021-09-20
  • 2021-07-06
  • 2021-11-11
  • 2021-10-27
  • 2021-12-30
  • 2022-01-22
猜你喜欢
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-02-16
相关资源
相似解决方案