全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Superkey, candidate key, primary key, foreign key?

又称: superkey · candidate key · primary key · foreign key

Definition 29.3 University Computer Science — Year 1 · 第 29 章 — The Relational Model, Relational Algebra and SQL

A superkey of a schema is a set of attributes on which no two tuples of any allowed instance agree. A candidate key is a superkey none of whose proper subsets is one. The primary key is the candidate key chosen to identify tuples. A foreign key of RR is a set of attributes whose values must appear as the primary key of some tuple of another relation SS: it references SS.

在原文中阅读 →