摘要:
查询语句 db.getCollection("A表").update( { "id":{$eq:11} } ,{ $set:{"a":1} } , {multi: true} ) 作用:根据条件来更新A表中a字段的值,若a字段不存在则创建。 查询语句分析 条件:"id":{$eq:11} id=11 阅读全文
posted @ 2019-03-19 16:24
H辉
阅读(3324)
评论(0)
推荐(0)
摘要:
查询语句 db.getCollection("A表").aggregate([ { $lookup:{ from:"B表", localField:"A_id", foreignField:"B_id", as:"B_list" } }, { $match:{ A_id:{$eq:100000} } 阅读全文
posted @ 2019-03-19 15:23
H辉
阅读(3740)
评论(0)
推荐(0)
浙公网安备 33010602011771号