[MongoDB] The connection between two tables, mongodbtables

Source: Internet
Author: User

[MongoDB] The connection between two tables, mongodbtables

In mongoDB, there are two general way to connect with two tables. Manual Connection and use DBRef

1. Basically manual connection

Firstly init the data which was saved in the different collections.

The result:

2 usage DBRef

Grammar:


The example:


Attention: the above example has some question;



The () between the two playing periods of a football game is only a few minutes

5. proposal by proposal
4. captured
3. amused is interesting
2. when she went to that place, she had a good time.
1. interval

He doesn' t even know where the difference between the two lies, which surprises us all

He didn't even know where these two things are, which surprised us.
Note that lie does not mean "lie", but "lie.
Where is the difference, it must be said, so where is used
If you change it to the following, you can use what:
What the difference between the two is
What is the difference between the two things?

Hope to help you ~!

Related Article

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.