问题:
[单选题]MongoDB数据库的stu集合中,查询存在address字段的文档,操作如下( )。
A db.stu.find({address: {exists: true}})
B db.stu.find({address: {exists: 1}})
C db.stu.find({address: {$exists: 1}})
D db.stu.find({address: {$exists: true}})
Copyright © 2024 www.daanwo.com All Rights Reserved |