Previous Topic: Naming the TableNext Topic: Element Creation


Key Creation

You can create CA Datacom Datadictionary KEY entity-occurrences in several ways with parameters in your SQL statements and by using the CREATE INDEX statement. See CREATE TABLE and Creating an Index for details. For information about specifying an SQL key selection override key in either the correlation name or synonym name, see Overriding SQL Key Selection.

The following are four of the ways KEY entity-occurrences can be defined by CA Datacom Datadictionary as a result of SQL processing. The key SQL name is created by CA Datacom Datadictionary. The name consists of the DATACOM-NAME attribute-value of the key followed by the underscore character followed by the concatenation of the DATACOM-NAME attribute-value of the table and the DATACOM-ID attribute-value of the database containing the key. For example, a key with DATACOM-NAME SQ032 in table INV in database 16 has the SQLNAME attribute-value SQ032_INV00016.

The five-character DATACOM name of each key uses SQ followed by three digits for uniqueness.