Next
/
Previous
/ Index
/ TCC Help System
/ Publications
/ Site map
/ NM Tech homepage
Creating a Sybase clustered index
|
|
Use a clustered index when you want the physical order of a
table to match the index. They cannot be created on text or
image datatypes. Each table can only have one clustered index.
At the end of each command press the space-bar or press enter
before continuing the next step.
- To create a clustered index, type:
create clustered index
- Type the name for the index.
- Type:
on
- Type the name of the table you are creating an index on.
- Type:
a
(
- Type the column name you want to create the index on.
- Type:
)
- Type:
go
- Press Enter.
If everything goes well, you see the database prompt (a
period, the name of the database you are using, another period,
the number one and then the greater than symbol).
Next: Example of a Sybase clustered index
See also: Indexing Sybase tables
Previous: Types of Sybase index
Site map
Index:
Keyword index
to help pages
Help:
New Mexico Tech Computer Center: Help System
TCC Publications
Home:
About New Mexico Tech
Maintained by John Shipman, john@nmt.edu;
original by Steve Anderson
Last updated: 1997/06/23 21:43:34 UT
URL: http://www.nmt.edu/tcc/help/db/sybase/clustered.html