Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Relational schema, integrity constraint?

Também chamado de: relational schema · integrity constraint

Definition 30.5 High School Computer Science · Capítulo 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.
Ler no capítulo →