11-15c# Foundation--The Paradigm Theory of database

Source: Internet
Author: User

The design theory and thinking of database

In the design of the database, there is a well-known design theory --- paradigm theory.

1. Content:

The first paradigm: the data types of each column should be unitary and must be unified;

The second paradigm: When designing the primary key, the primary key is as much as possible to reflect the data information in the table.

Example: Combined primary key in a fraction table

The number of goods and the time of the out of storage set the combined primary key

The third paradigm: each column in a table has data information that is directly related to the primary key as much as possible.

2, under what circumstances use ' paradigm theory '?

Take ' invoicing ' as an example:

Primary key design for foreign key table

Relationships between database tables:

Relationship to the primary foreign key table:1 relations to N , when this relationship occurs, it is drawn separately to design two tables.

When n - n relationships occur, the tables must be separate tables

11-15c# Foundation--The Paradigm Theory of 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.