Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Relational schema, integrity constraint?

Dikenal juga sebagai: relational schema · integrity constraint

Definition 30.5 High School Computer Science · Bab 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.
Baca dalam konteks →