No-coupling database, 3-in-1 structure (or 3-layer structure)

Source: Internet
Author: User

# table 1: Object Readme Table People

Id:1,name:coolguy,adress:china

Id:2,name:baby,adress:china

# table 1: Object Readme table book

Id:1,title:a book,date:2016

Id:2,title:a bag,date:2016

id:3,title:apple,date:2016

# table 1: Object Readme Table Song

Id:1,name:rainbow

Id:2,name:the Sun

# table 2: Object association table People_book

Bookid:1,peopleid:1

Bookid:2,peopleid:1

Bookid:3,peopleid:2

# table 2: Object association table People_song

Songid:1,peopleid:2

Songid:2,peopleid:2

# Table 3: object contains table People_containsobject

Peopleid:1,table:people_book

Peopleid:2,table:people_book

Peopleid:2,table:people_song

No-coupling database, 3-in-1 structure (or 3-layer structure)

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.