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

SQL Anywhere 12.0.1 » SQL Anywhere サーバー SQL リファレンス » ビュー » 互換ビュー

 

SYSFKCOL 互換ビュー (旧式)

SYSFKCOL の各ローは、外部テーブルの外部カラムと、プライマリテーブルのプライマリカラムの関係を示します。このビューは使用されなくなりました。代わりに SYSIDX と SYSIDXCOL のシステムビューを使用してください。

ビューを構成するテーブルとカラムは、以下の SQL 文で示されます。特定のテーブルまたはカラムの詳細については、以下のビュー定義にあるリンクを参照してください。



ALTER VIEW "SYS"."SYSFKCOL"
  as select a.table_id as foreign_table_id,
    a.index_id as foreign_key_id,
    a.column_id as foreign_column_id,
    a.primary_column_id
    from SYS.ISYSIDXCOL as a
      ,SYS.ISYSIDX as b
    where a.table_id = b.table_id
    and a.index_id = b.index_id
    and b.index_category = 2
 参照