标签:tool int null 字段 and 类型 反向 nbsp 订单
反向查询:
db.order.find({ "status": NumberInt(2), "has_pay": true, "amount": { $ne: NumberInt(0) },$and: [ { "type":{ $ne: "C" } }, { "type": { $ne: "B"} } ]})
或者
db.order.find({ "status": NumberInt(2), "has_pay": true, "amount": { $ne: NumberInt(0) }, $nor: [ { "type": "C" }, { "type": "B" } ] })
正向查询:
db.order.find({ "status": NumberInt(2), "has_pay": true, "amount": { $ne: NumberInt(0) }, $or: [ { "type": "A" }, { "type": null } ] })
标签:tool int null 字段 and 类型 反向 nbsp 订单
原文地址:https://www.cnblogs.com/Calinayc/p/11551762.html