【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 of DBRef
grammar:
the example:
5. proposal 提建议
4. captured 抓住
3. amused 觉得有意思
2 when 当她去那个地方时,她玩的很高兴
1. interval 间隔
句意:他甚至不知道这两个东西不同的地方在哪里,这点使我们都很吃惊。
注意到这里的lie不是“谎言”的意思,而是“位于”的意思。
不同的地方位于哪里,肯定是这么个说法的,所以用的是where
而如果改成以下的,就可以用what了:
what the difference between the two is
这个时候的意思就是:这两个东西的不同点是什么
希望帮助到你~!
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。