Creating Indexes; Indexes In The System Tables - Sybase Adaptive Server IQ 12.4.2 Administration And Performance Manual

Table of Contents

Advertisement

Creating indexes

Indexes in the system tables

Displaying indexes
using stored
procedures
Indexes are created on a specified table, or on a set of tables for join indexes.
You cannot create an index on a view.
You can create column indexes in three ways:
With the
CREATE INDEX
With the Add Index option in Sybase Central
With the
or
UNIQUE
which creates a unique index automatically.
You can create a join index in two ways:
With the
CREATE JOIN INDEX
With the Join Index Editor in Sybase Central
See Chapter 4, "Adaptive Server IQ Indexes" for details on selecting and
creating indexes. See the Adaptive Server IQ Reference Manual for command
syntax.
Information on indexes is in the system tables
, and for join indexes,
SYSIXCOL
Reference Manual for a description of these tables. See Introduction to
Adaptive Server IQ for an explanation of how to browse system tables in
DBISQL and in Sybase Central.
You can also use the stored procedure
information about them. For example, to list the indexes in the sales_order
table, issue the command:
sp_iqindex 'sales_order'
The following information displays. (A remarks column also appears, but is not
shown here.)
CHAPTER 3
Working with Database Objects
command
column constraint of
PRIMARY KEY
statement
SYSINDEX
. See the Adaptive Server IQ
SYSIQJINDEX
to display a list of indexes and
sp_iqindex
,
CREATE TABLE
,
,
SYSIQINDEX
133

Advertisement

Table of Contents
loading

Table of Contents