文章目录
1.查询
db.getCollection('bidnotices'). find(
{$and:[
{title:{"$regex":"高",$option:'gi'}},
{title:{"$regex":"项目",$option:'gi'}}]}
)
db.getCollection('bidnotices'). find(
{title:{"$regex":"高"}})
db.getCollection('bidnotices').find({"crawlingtime":{$lte:"2020-02-28"}})
db.getCollection('bidnotices').updateMany({"crawlingtime":{$lte:"2020-02-27 22:39:59"}},{$set: {'status':1
}})