memrootじしょ
英和翻訳
Foreign Key
Column
Retention
Foreign Key
ˈfɒrɪn kiː
フォーリン キー
1.
リレーショナルデータベースにおいて、別のテーブルの主キーを参照する列、または列の組み合わせ。
リレーショナルデータベースのテーブル間で関連性を持たせるために使用される特別な種類のキーです。あるテーブルの外部キーが、別のテーブルの主キーを参照することで、2つのテーブルが論理的に結合されます。
The
'CustomerID'
column
in
the
'Orders'
table
serves
as
a
foreign
key,
referencing
the
'CustomerID'
in
the
'Customers'
table.
(「Orders」テーブルの「CustomerID」列は、「Customers」テーブルの「CustomerID」を参照する外部キーとして機能します。)
The 'CustomerID' column
「CustomerID」列は
in the 'Orders' table
「Orders」テーブル内の
serves as
として機能します
a foreign key
外部キー
referencing
参照して
the 'CustomerID'
「CustomerID」を
in the 'Customers' table
「Customers」テーブル内の
When
you
delete
a
customer,
the
foreign
key
constraint
might
prevent
you
from
doing
so
if
there
are
associated
orders.
(顧客を削除する際、関連する注文がある場合、外部キー制約が削除を妨げる可能性があります。)
When you delete a customer
顧客を削除しようとすると
the foreign key constraint
外部キー制約が
might prevent you from doing so
それを阻止する可能性があります
if there are associated orders
関連する注文が存在する場合
A
foreign
key
ensures
that
a
value
in
one
table's
column
must
match
a
value
in
another
table's
primary
key.
(外部キーは、あるテーブルの列の値が、別のテーブルの主キーの値と一致することを保証します。)
A foreign key
外部キーは
ensures that
ということを保証します
a value
値が
in one table's column
あるテーブルの列にある
must match
一致しなければならない
a value
値と
in another table's primary key
別のテーブルの主キーにある
2.
参照整合性を保証し、データベース内のデータの整合性と一貫性を維持するメカニズム。
外部キーは、参照される側のテーブルに存在するデータのみを参照することを強制することで、データの整合性を保証します。これにより、無効な参照や孤立したレコードが作成されるのを防ぎ、データベースの信頼性を高めます。
Implementing
foreign
keys
helps
maintain
data
consistency
across
multiple
tables.
(外部キーを実装することは、複数のテーブル間のデータの一貫性を維持するのに役立ちます。)
Implementing foreign keys
外部キーを実装することは
helps maintain
維持するのに役立ちます
data consistency
データの一貫性を
across multiple tables
複数のテーブル間で
Without
foreign
keys,
it
would
be
much
harder
to
guarantee
the
integrity
of
related
data.
(外部キーがなければ、関連データの整合性を保証することははるかに困難になります。)
Without foreign keys
外部キーがなければ
it would be much harder
はるかに困難になるでしょう
to guarantee
保証することは
the integrity
整合性を
of related data
関連データの
Database
designers
use
foreign
keys
to
enforce
relationships
and
prevent
invalid
data
entries.
(データベース設計者は、外部キーを使用して関係を強制し、無効なデータ入力を防ぎます。)
Database designers
データベース設計者は
use foreign keys
外部キーを使用します
to enforce relationships
関係を強制し
and prevent
そして防ぐために
invalid data entries
無効なデータ入力
関連
Primary Key
Relational Database
Referential Integrity
Database Schema
Table