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
posted @ 2023-05-05 22:09
posted @ 2023-05-05 21:36
posted @ 2023-04-26 23:06
posted @ 2023-02-02 15:47