MongoDB之數據查詢(嵌套集合)

在MongoDB數據庫裏面每個集合數據能夠繼續保存其餘的集合數據,例若有些人員保存家庭信息。 範例:增長數據 db.emp.insert({"name":"林A","sex":"男","age":22,"sal":8000,"loc":"北京","course":["語文","數學","英語","音樂","政治"],"parents":[{"name":"林A父親","age":50,"job":
相關文章
相關標籤/搜索