mongodb用法小结
db.getCollection('t_xxx').find({$and: [{字段A:{$gt:"A1"},字段B:{$gt:NumberDecimal("0"),$lt:NumberDecimal("10")}}]}).sort({字段A: 1}).limit(100)db.getCollection('t_xxx').find({$and: [{字段A:{$gt:"A1"},字段B:{$ne:NumberDecimal("0")}}]}).sort({字段A: 1}).limit(100)
原创
2023-06-30 22:14:26 ·
669 阅读 ·
0 评论