The DROP CALC data description statement deletes the definition of a CALC key from the dictionary. It is also a CA IDMS extension of the SQL standard.
To issue a DROP CALC statement, you must own or have the ALTER privilege on the table on which the CALC key is defined.
►►─── DROP CALC key FROM ─┬────────────────┬─ table-identifier ───────────────►◄ └─ schema-name. ─┘
Specifies the name of the table associated with the CALC key being dropped. Table-identifier must identify a base table on which a CALC key has been defined in the dictionary. The named table cannot contain any data (that is, the table must be empty).
Identifies the schema associated with the named table.
If you do not specify schema-name, it defaults to:
CALC Keys on Tables in the SYSTEM Schema
You cannot delete the definition of a CALC key on a table in the SYSTEM schema.
CALC Keys in the Implementation of Referential Constraints
You cannot drop a CALC key that is used in the implementation of a referential constraint if no existing index can be used in place of the CALC key.
Dropping a CALC Key
The following DROP CALC statement deletes the definition of the CALC key associated with the COVERAGE table from the dictionary:
drop calc from coverage;
|
Copyright © 2014 CA.
All rights reserved.
|
|