MySQL's design database

Source: Internet
Author: User

Steps to design a database

1. Fully understand the requirements document
2. Extracting entities from the requirements document

    • Entity: is the real thing (noun)

3. Extract the attributes of each entity through demand

    • attribute of an entity: is the description of the entity and its characteristics

4. Analyze relationships between entities to establish relationships

    • The relationship between entities: the connection between the existence of things and things

5. Convert the relationship between entity and attribute table to e-r diagram

    • Rectangles represent entities
    • Ellipse represents an attribute of an entity
    • Diamonds represent relationships between entities

6. Convert an entity to a table structure

    • Entity name: is the table name
    • Entity attribute: is its field

7. Set the primary key for each table according to needs and needs, set the relationship between the tables, etc.

MySQL's design 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.