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

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.
主站蜘蛛池模板: 桐庐县| 赤峰市| 津市市| 三穗县| 舞阳县| 通州市| 沧州市| 永清县| 阳山县| 黄石市| 英德市| 凤凰县| 池州市| 赣榆县| 贵港市| 泸西县| 怀宁县| 江油市| 习水县| 鄂托克旗| 六盘水市| 临潭县| 上高县| 双江| 定兴县| 清水河县| 荣成市| 库尔勒市| 九龙县| 广西| 长治市| 延吉市| 安化县| 鸡东县| 横山县| 巫山县| 衡阳县| 南阳市| 梨树县| 离岛区| 南召县|