How indexes work  Guidelines for using indexes

Chapter 12: Creating Indexes on Tables

Comparing the two ways to create indexes

You can create indexes on tables either by using the create index statement (described in this chapter) or by using the unique or primary key integrity constraints of the create table command. However, integrity constraints are limited in the following ways:

If your application requires these features, you should create your indexes using create index. Otherwise, the unique or primary key integrity constraints offer a simpler way to define an index for a table. For information about the unique and primary key constraints, see Chapter 8, “Creating Databases and Tables.”





Copyright © 2005. Sybase Inc. All rights reserved. Guidelines for using indexes

View this book as PDF