Oracle 5.0 Reference Manual page 1204

Table of Contents

Advertisement

SHOW {INDEX | INDEXES | KEYS}
{FROM | IN}
tbl_name
[{FROM | IN} db_name]
[WHERE expr]
returns table index information. The format resembles that of the
SHOW INDEX
ODBC.
returns the following fields:
SHOW INDEX
Table
The name of the table.
Non_unique
0 if the index cannot contain duplicates, 1 if it can.
Key_name
The name of the index. If the index is the primary key, the name is always PRIMARY.
Seq_in_index
The column sequence number in the index, starting with 1.
Column_name
The column name.
Collation
How the column is sorted in the index. In MySQL, this can have values "A" (Ascending) or
sorted).
Cardinality
An estimate of the number of unique values in the index. This is updated by running
or
TABLE
myisamchk
the value is not necessarily exact even for small tables. The higher the cardinality, the greater the
chance that MySQL uses the index when doing joins.
Sub_part
The number of indexed characters if the column is only partly indexed,
indexed.
Packed
Indicates how the key is packed.
Null
Contains
if the column may contain
YES
Index_type
The index method used (BTREE, FULLTEXT, HASH, RTREE).
Comment
Information about the index not described in its own column, such as
disabled.
Syntax
SHOW
is counted based on statistics stored as integers, so
-a.
Cardinality
if it is not.
NULL
NULL
1184
values and
if not.
''
SQLStatistics
NULL
ANALYZE
if the entire column is
NULL
if the index is
disabled
call in
(Not

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents