Релации

Allows you to define and edit a relation between two tables.

За да пристапите до оваа наредба...

In a database file window, choose Tools - Relationships.


Note Icon

The update and delete options are only available if they are supported by the database used.


Табели

If you create a new relation, you can select one table from each of the combo boxes in the top part of the dialog.

If you opened the Relations dialog for an existing relation by double-clicking the connection lines in the Relation window, then the tables involved in the relation cannot be modified.

Key fields

Defines the key fields for the relation.

The names of the tables selected for the link appear here as column names. If you click a field, you can use the arrow buttons to select a field from the table. Each relation is written in a row.

Ажурирај опции

Here you can select options that take effect when there are changes to a primary key field.

Нема активност

Specifies that any change made to a primary key does not affect other external key fields.

Updating cascade

Updates all the external key fields if the value of the corresponding primary key has been modified (Cascading Update).

Set null

If the corresponding primary key has been modified, use this option to set the "IS NULL" value to all external key fields. IS NULL means that the field is empty.

Постави стандардна вредност

If the corresponding primary key has been modified, use this option to set a default value to all external key fields. During the creation of the corresponding table, the default value of an external key field will be defined when you assign the field properties.

Избриши опции

Here you can select options that take effect when a primary key field is deleted.

Нема активност

Specifies that the deletion of a primary key will not have any effect on other external key fields.

Избриши каскада

Specifies that all external key fields will be deleted if you delete the corresponding primary key field.

Warning Icon

When you delete a primary key field with the Delete cascade option, all records from other tables that have this key as their foreign key are also deleted. Use this option with great care; it is possible that a major portion of the database can be deleted.


Set null

If you delete the corresponding primary key, the "IS NULL" value will be assigned to all external key fields.

Set Default

If you delete the corresponding primary key, a set value will be set to all external key fields.

Please support us!