Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere 10 - Context-Sensitive Help » SQL Anywhere Plug-in Help » Introduction to SQL Anywhere property sheets

External Login property sheet: General tab Next Page

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 foreign key. You can edit the name of the foreign key in this field.

Type    Shows the type of object.

Unique    Shows whether or not the foreign key is unique.

Foreign table    Shows the name and owner of the table to which the foreign key applies.

Foreign index    Shows the name of the index used to enforce the foreign key.

Primary constraint    Shows the name of the primary key or unique constraint that the foreign key references.

Primary constraint type    Shows the type of constraint the foreign key references. This can only be a primary key or a unique constraint.

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

Primary index    Shows the name of the index used to maintain the primary key or unique constraint.

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.

Match type    Shows the match type selected for the foreign key. The match type determines what is considered a match when using a multi-column foreign key where Null values are allowed. This is only applicable if the foreign key allows Null.

The possible match types are listed below.

Update action    Uses one of the following settings to define the behavior of the table when a user tries to update values in the foreign key.

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

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. To change this setting, click Change.

For more information on this option, see wait_for_commit option [database].

Change    Opens the Change Settings dialog where you can change the settings for this primary key.

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