设为首页 加入收藏

TOP

【MongoDB】Theconnectionbetweentwotables
2015-07-24 10:46:00 来源: 作者: 【 】 浏览:1
Tags:MongoDB Theconnectionbetweentwotables

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:


Attention: the above example has some question;
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇【MongoDB】DownloadthemongoDB 下一篇varchar所占内存的影响 测试

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Asus Armoury Crate (2025-12-26 02:52:33)
·WindowsFX (LinuxFX) (2025-12-26 02:52:30)
·[ Linux运维学习 ] (2025-12-26 02:52:27)
·HTTPS 详解一:附带 (2025-12-26 02:20:37)
·TCP/IP协议到底在讲 (2025-12-26 02:20:34)