全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Relational schema, integrity constraint?

又称: relational schema · integrity constraint

Definition 30.5 High School Computer Science · 第 30 章 — Relational Databases and SQL

The relational schema of a database lists its relations, with for each one its attributes, their domains, its primary key and its foreign keys. An integrity constraint is a rule every state of the database must satisfy. Three kinds come with the schema: domain constraints (each value lies in its attribute’s domain), relation constraints (no two rows share a primary key) and reference constraints (each foreign key points to a row that exists).

Part of the town’s schema. Primary keys are underlined; each arrow goes from a foreign key to the relation whose primary key it names: a loan points to a book and to a member, a member to a person, a person to a street. Each fact now has one place: an address in streets, an author in books.
Part of the town’s schema. Primary keys are underlined; each arrow goes from a foreign key to the relation whose primary key it names: a loan points to a book and to a member, a member to a person, a person to a street. Each fact now has one place: an address in streets, an author in books.
在原文中阅读 →