Updated on 2024-08-20 GMT+08:00

Adding a Partition to a Range Partitioned Table

You can use ALTER TABLE ADD PARTITION to add a partition to the end of an existing partitioned table. The upper boundary of the new partition must be greater than that of the last partition.

For example, add a partition to the range partitioned table range_sales.
ALTER TABLE range_sales ADD PARTITION date_202005 VALUES LESS THAN ('2020-06-01') TABLESPACE tb1;

If a range partitioned table has the MAXVALUE partition, partitions cannot be added. You can use the ALTER TABLE SPLIT PARTITION statement to split partitions. Partition splitting is also applicable to the scenario where partitions need to be added before or in the middle of an existing partitioned table. For details, see Splitting a Partition for a Range Partitioned Table.