首页 > 数据库技术 > 详细

【MongoDB】The connection between two tables

时间:2014-10-22 06:25:03      阅读:191      评论:0      收藏:0      [点我收藏+]

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. 

bubuko.com,布布扣

The result:

bubuko.com,布布扣

2 usage of  DBRef

grammar: 

bubuko.com,布布扣

the example: 

bubuko.com,布布扣

Attention: the above example has some question;


【MongoDB】The connection between two tables

原文:http://blog.csdn.net/sxb0841901116/article/details/40360375

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!