The DROP INDEX data description statement deletes the definition of an index from the dictionary. It is also a CA IDMS extension of the SQL standard.
To issue a DROP INDEX statement, you must own or have the ALTER privilege on the table on which the index is defined.
►►─── DROP INDEX index-name ──────────────────────────────────────────────────► ►─── FROM ─┬────────────────┬─ table-identifier ─────────────────────────────►◄ └─ schema-name. ─┘
Specifies the name of the index being dropped. Index-name must identify an index defined in the dictionary.
Identifies the table on which the named index is defined.
Identifies the schema associated with the named table.
If you do not specify a schema-name, the default value is:
Indexes on Tables in the SYSTEM Schema
You cannot delete the definition of an index on a table in the SYSTEM schema.
Indexes Used in the Implementation of Referential Constraints
You cannot drop an index that is used in the implementation of a referential constraint if no other existing index or CALC key can be used in place of the index.
Dropping an Index
The following DROP INDEX statement deletes the definition of the BUDGET_DATE_INDEX index from the dictionary:
drop index budget_date_index from sales.monthly_budget;
|
Copyright © 2014 CA.
All rights reserved.
|
|