Traditional Culture Encyclopedia - Traditional stories - Briefly describe three paradigms and five constraints of database.
Briefly describe three paradigms and five constraints of database.
First normal form: Each column (field) in the data table must be the smallest unit that cannot be split, and no hidden fields are allowed. Attributes remain "atomicity" (the largest subdivided two-dimensional table).
The second paradigm: there must be a primary key on the basis of first normal form, and all columns must depend on the primary key, but no column has nothing to do with the primary key, that is, a table only describes one thing (this row is equivalent to explaining a person, and one column cannot be added to explain the weather).
The third normal form: satisfies the second normal form, and each column in the table is only directly related to the primary key, not indirectly related (each column in the table can only rely on the primary key).
Normalized Normal Form (BCDF): Determinants in all tables must be candidate keys. If there is only one candidate key, it is the same as the third normal form.
There is also the fourth and fifth paradigm. The higher paradigm is to solve the problem of data redundancy, but it can also be realized in other ways. So it is generally not needed.
Five major constraints:
1. Primary key: set primary key constraint;
2. Uniqueness: set uniqueness constraint, and there cannot be duplicate values;
3. Default value constraint, Height Double (3 3,2) default1.2 height; If it is not entered, it defaults to 1, 2.
4. Non-empty: set a non-empty constraint; this field cannot be empty;
5. Foreign key: set foreign key constraints.
- Previous article:7 Lingnan Edition Seventh Grade Art Volume II Teaching Plan
- Next article:Etfs rank in the top ten.
- Related articles
- How to write good calligraphy seed characters?
- The Story of Celebrity Moral Cultivation _ The Short Story of Celebrity Moral Cultivation (2)
- How to successfully transform from finance major to IT industry?
- Is it true that when Chinese martial arts are practiced to a high level, you can easily kill your enemy with your bare hands?
- How to draw peony flowers to look good?
- Which pharmaceutical factory in Xincai County has paved the herbs?
- What are the characteristics of China's traditional culture?
- Principle of composting
- What are the representative foods of the Mid-Autumn Festival
- What are the steps of tile joint filling?