Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
プライマリ・キーと同様、外部キーは CREATE TABLE 文または ALTER TABLE 文を使って作成します。外部キーを作成すると、外部キーに指定したカラムに入力できる値が、関連付けたテーブルのプライマリ・キー値として存在する値にかぎられます。
外部キー作成の詳細については、プライマリ・キーの管理を参照してください。