The DROP KEY statement deletes the definition of a procedure or table procedure key from the dictionary. It is also a CA IDMS extension of the SQL standard.
To issue a DROP KEY statement, you must own or hold the ALTER privilege on the procedure or table procedure from which the key is being dropped.
►►─── DROP KEY key-name ──────────────────────────────────────────────────────► ►─── FROM ─┬────────────────┬───┬─ procedure-identifier ───────┬─────────────►◄ └─ schema-name. ─┘ └─ table-procedure-identifier ─┘
Specifies the name of the key to be dropped. The key-name must identify a key defined in the dictionary.
Specifies the table procedure from which the key is dropped.
Specifies the procedure from which the key drops.
Identifies the schema associated with the named procedure or table procedure. If you do not specify a schema-name, it defaults to:
Dropping a Key
The following DROP KEY statement deletes the definition of the ORG1 key from the dictionary:
drop key org1 from emp.org;
Note: For more information about defining keys, see CREATE KEY.
|
Copyright © 2014 CA.
All rights reserved.
|
|