Foreign Key property sheet: General tab

The General tab of the Foreign Key property sheet has the following components:

Name    Shows the name of the . You can change the name of the foreign key in this field.

Type    Shows the type of object.

Foreign table    Shows the name of the table the foreign key belongs to, as well as the table's owner.

Primary table    Shows the table containing primary key in this foreign key relationship.

Check on commit    Forces the database to wait for a COMMIT before checking the integrity of the foreign key, overriding the setting of the WAIT_FOR_COMMIT database option.

Allows null    Determines whether the foreign key columns allow NULL values. To use this option, the foreign key columns must all have Allow Nulls set to Yes.

Update action    Uses one of the following settings to define the behavior of the table when a user tries to update data.

Delete action    Uses one of the following settings to define the behavior of the table when a user tries to delete data.

Clustered    Shows whether the primary or foreign table uses a clustered index. Clustered indexes are supported for Adaptive Server Anywhere databases that are version 8.0.2 and higher.

Clustered indexes in Adaptive Server Anywhere store the table rows in approximately the same order as they appear in the corresponding index. Using a clustered index can lead to performance benefits by reducing the number of times each page needs to be read into memory. Only one index on a table can be a clustered index.

For more information about clustered indexes, see .

Index type    Shows the type of index the table has.

For more information about indexes, see .

Maximum hash size     This information only appears for databases that are created with Adaptive Server Anywhere 7 or earlier. The hash size is the number of bytes used to store a value in an index.

Adaptive Server Anywhere version 6 and 7 databases use regular B-tree indexes with a hash size of 10.

Comment    Provides a place for you to type a text description of the foreign key. For example, you could use this area to describe the foreign key's purpose in the system.

See also