官术网_书友最值得收藏!

Constraint

The relational model defines many constraints in order to control data integrity, redundancy, and validity:

  • Redundancy: Duplicate tuples are not allowed in the relation.
  • Validity: Domain constraints control data validity.
  • Integrity: The relations within a single database are linked to each other. An action on a relation such as updating or deleting a tuple might leave the other relations in an invalid state.

We could classify the constraints in a relational database roughly into two categories:

  • Inherited constraints from the relational model: Domain integrity, entity integrity, and referential integrity constraints.
  • Semantic constraint, business rules, and application specific constraints: These constraints cannot be expressed explicitly by the relational model. However, with the introduction of procedural SQL languages such as PL/pgsql for PostgreSQL, relational databases can also be used to model these constraints.
主站蜘蛛池模板: 蒲江县| 林甸县| 九寨沟县| 通州区| 遵化市| 四川省| 北京市| 岳西县| 襄垣县| 丘北县| 土默特左旗| 临洮县| 栖霞市| 东乡族自治县| 乳山市| 新乐市| 金湖县| 华安县| 宁陵县| 饶平县| 婺源县| 辽宁省| 南康市| 招远市| 郎溪县| 清流县| 惠水县| 柳江县| 九江县| 鲜城| 望奎县| 尼勒克县| 越西县| 桦川县| 渭源县| 阳新县| 河东区| 四会市| 五台县| 宁陵县| 西吉县|