In range partitioning, Adaptive Server distributes rows among partitions according to values in the partitioning keys. The partitioning key or keys of each row are compared with a set of upper and lower bounds to determine which partition the row belongs to.
Every partition has an inclusive upper bound, which is specified when the partition is created.
Every partition except the first has a noninclusive lower bound, which is specified implicitly by the upper bound on the next-lower partition.
Creating range partitions
Double-click the Databases folder in the left pane.
Double-click the icon of the database with the table to partition.
Double-click the User Tables folder.
Double-click the icon of the table to repartition.
Select the Data Partitions folder.
Double-click the Repartition icon in the right pane. The Create Partition wizard opens. The wizard asks for this information:
Input |
Description |
|---|---|
Range |
Choice of partitioning strategy. |
Partition Key Columns |
Table columns that determine how the table is to be partitioned. |
Partition Name |
Name of partition (optional). |
Segment |
Segment name (optional). |
Values |
One or more upper bounds for each partition. |
After you have chosen a partitioning strategy and key column, the Partition Specification dialog box opens. Enter partition values.
Enter the name of a partition in the Partition Name box (optional).
Select a segment from the drop-down list in the Segment box (optional).
Enter values for the partition. The values must be of the same datatype as the column.
Click OK.
Repeat steps 7 through 10 until you have defined values for all range partitions.