Local nonclustered indexes  Creating and managing partitions

Chapter 10: Partitioning Tables and Indexes

Guaranteeing a unique index

A unique index ensures that no two rows have the same index value, including NULL. The system checks for duplicate values when the index is created, if data already exists, and checks each time data is added or modified with an insert or update. See Chapter 12, “Creating Indexes on Tables,” for more information about creating unique indexes.

You can easily enforce uniqueness—using the unique keyword—on global indexes because they are not partitioned. Local indexes are partitioned; enforcing uniqueness requires additional constraints.

To enforce uniqueness on local indexes, the partition keys:

For example, it is possible to impose uniqueness in these instances:

You cannot enforce uniqueness on round-robin partitioned tables with local indexes.





Copyright © 2005. Sybase Inc. All rights reserved. Creating and managing partitions

View this book as PDF