• 2022-06-12
    下列多条件查询使用正确的有()
    A:
    B: and查询db.collection.find({ $and : [ { "age" : {$gt : 10 }} , { "gender" : "man" } ]})
    C: #or查询db.collection.find({ $or : [ {"age" : {$gt : 10 }}, { "gender" : "man"} ]})
    D:
    E: and查询和or查询db.inventory.find( { $and : [ { $or : [ { price : 0.99 }, { price : 1.99 } ] }, { $or : [ { sale : true }, { qty : { $lt : 20 } } ] } ]} )
    F:
    G: and查询和or查询db.inventory.find( { $or: [ { $and : [ { price : 0.99 }, { price : 1.99 } ] }, { $: [ { sale : true }, { qty : { $lt : 20 } } ] } ]} )