mongodb使用and配合or查询
摘要:
使用mongodb时,有时需要使用and配合(嵌套)or查询。 实现类似以下sql的语句: select * from MongoDbTest where status=1 and (userId="abc" or price>=2) 对应的 mongodb语句如下: db.getCollectio 阅读全文
posted @ 2023-05-05 22:09 乐之者v 阅读(508) 评论(0) 推荐(0)
浙公网安备 33010602011771号