The following example adds a partition to a list-partitioned sales table, you can specify a SUBPARTITIONS clause to add a specified number of subpartitions. The sales table was created with the command:
The table contains two partitions europe and asia, each containing two subpartitions. Because the subpartitions are not named, system-generated names are assigned to them.
The following command adds a new partition americas to the sales table and will create a number of subpartitions as specified in the partition description.
After invoking the command the table includes the partition americas and two newly added subpartitions.
Example - Adding a Partition with SUBPARTITIONS num...
The following example adds a partition a list-partitioned table sales consisting of three subpartitions. The sales table was created with the command:
The table contains partitions europe and asia, each containing three subpartitions.
The following command adds a new partition americas and five subpartitions as specified in the ADD PARTITION clause.
After invoking the command sales table includes the partition americas and five newly added subpartitions.
Example - Adding a Partition with SUBPARTITIONS num... STORE IN
The following example adds a partition to a list-partitioned table sales consisting of three subpartitions. The table was created using the command:
The table contains three partitions (americas, asia, and europe), each containing three subpartitions with system-generated names.
The following command adds a new partition east_asia with five subpartitions as specified in the ADD PARTITION clause and stores them in the tablespace named (ts1).
After invoking the command table includes the partition east_asia and five newly added subpartitions stored in tablespace (ts1).