Question: What is a foreign key, and how does it enforce referential integrity?Answer: A foreign key is a field that refers to the primary key in another table. It enforces referential integrity by ensuring that values in the foreign key match values in the referenced table's primary key. |
復習用に保存
この項目をブックマークに追加したり、難しい内容としてマークしたり、復習セットに入れたりできます。
役に立ちましたか? はい いいえ
ユーザー評価で最も役立つ内容:
- Explain the concept of ACID properties in the context of databases.
- What is the purpose of the WHERE clause in a PostgreSQL query?
- What is a foreign key, and how does it enforce referential integrity?
- Explain the purpose of the SERIAL data type in PostgreSQL.