您的位置:首页 > 博客中心 > 数据库 >

【MongoDB】The connection between two tables

时间:2022-03-14 01:22

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. 

gxlsystem.com,布布扣

The result:

gxlsystem.com,布布扣

2 usage of  DBRef

grammar: 

gxlsystem.com,布布扣

the example: 

gxlsystem.com,布布扣

Attention: the above example has some question;


热门排行

今日推荐

热门手游