python - pymongo 如何查询一个字典数组中的某个KEY对应某个值?
天蓬老师
天蓬老师 2017-04-18 09:59:55
0
1
665
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all (1)
迷茫

Achieved with $elemMatch

db.test1.find({}, {"MemberList":{"$elemMatch":{"Uin":1589615073,"NickName":"暖暖的"}}})
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!