ホームページ  >  記事  >  データベース  >  【MongoDB】Theconnectionbetweentwotables

【MongoDB】Theconnectionbetweentwotables

WBOY
WBOYオリジナル
2016-06-07 16:06:141264ブラウズ

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;
声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。