This 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 contains two subpartitions. Because the subpartitions aren't named, system-generated names are assigned to them.
This command adds a partition americas to the sales table and creates 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...
This 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:
This command adds a partition americas and five subpartitions, as specified in the ADD PARTITION clause:
After the command is invoked, the sales table includes the partition americas and five newly added subpartitions:
Example: Adding a partition with SUBPARTITIONS num... STORE IN
This example adds a partition to a list-partitioned table sales consisting of three subpartitions. The table was created using the command:
The table contains the three partitions americas, asia, and europe. Each contains three subpartitions with system-generated names:
This command adds a partition east_asia with five subpartitions as specified in the ADD PARTITION clause. It stores them in the tablespace named ts1.
After the command is invoked, the table includes the partition east_asia and five newly added subpartitions stored in tablespace ts1: