Database Chapter 2 Relational database

Source: Internet
Author: User

Chapter II Relational databases

Relational database is the most important and most widely used database system.

This chapter focuses on the basic concepts of relational models, namely, the data structure of relational models, the relationship operations and the integrity of relationships.

There are three types of integrity constraints in a relational model: entity integrity, referential integrity, and user-defined integrity. The first two constraints are the integrity constraints that the relational model must satisfy, which is called the two invariance of the relationship, which should be automatically supported by the relational system, and the user-defined integrity is the constraint condition that the application domain needs to obey, which embodies the semantic constraints in the specific domain.

Entity integrity: A cannot be null if attribute A is the primary attribute of the basic relationship R.

Referential integrity:

Database Chapter 2 Relational database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.