当前位置:Gxlcms > mysql > 【MongoDB】Theconnectionbetweentwotables

【MongoDB】Theconnectionbetweentwotables

时间:2021-07-01 10:21:17 帮助过:9人阅读

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

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;

人气教程排行