テーブル間のリレーションシップの確認

www.altova.com このトピックを印刷 前のページ 1つ上のレベル 次のページ

ホーム >  データベース構造の探索と変更 > テーブル構造の表示 >

テーブル間のリレーションシップの確認

When you drag into デザインエディター ウィンドウ two or more tables that are related with each other, the relationships between these tables are shown with lines connecting the related tables. DatabaseSpy uses different colors to distinguish the individual relationships:

 

Green: Self-reference, i.e. the table uses a key that is assigned to one or more of the table's own columns.
Blue: Incoming reference, i.e. the selected table is referenced by a key used in another table.
Orange: Outgoing reference, i.e. the table has a key defined that references one or several column(s) in another table.

 

Please note that the color of one and the same relation line may change depending on the table that is currently selected. 例えば、 a 外部キー relationship is displayed blue if you select the referenced table, and orange if you select the referencing table. The screenshot below shows an incoming relationship for tblAnimalCategories.

design_outgoing-relation

The same relationship, however viewed from the referencing tblAnimalTypes table's point of view, is depicted with an orange relation line (下のスクリーンショットを参照してください)。

design_incoming-relation

The screenshot below illustrates a self relation that makes sure that the manager number ("MgrNo") of an employee's manager is contained in the list of employee numbers ("EmpNo").

design_self-relation


(C) 2019 Altova GmbH