Changing an unpartitioned table to a partitioned table  Changing the partitioning type

Chapter 10: Partitioning Tables and Indexes

Adding partitions to a partitioned table

You can add partitions to list- or range-partitioned tables, but you cannot add partitions to a hash or round-robin–partitioned table. This example adds a new partition to a range-partitioned table using the existing partition key column:

alter table titles add partition 
(vbigsales values <= (40000) on seg4)

NoteYou can add partitions only to the high end of existing range-based partitions. If you have defined values >= (MAX) on a partition, no new partitions can be added.

Adding a partition to list- or range partitioned tables does not involve a data copy. The newly created partition is empty.





Copyright © 2005. Sybase Inc. All rights reserved. Changing the partitioning type

View this book as PDF