表:tblCard

要更新的字段:tPAFlow

值字段: pFlow

过滤 条件:{"lCycle":2}

 

db.tblCard.find({"lCycle":2}).forEach(

   function(item){                 
       db.tblCard.update({"_id":item._id},{"$set":{"tPAFlow":item.pFlow}},false,true) 
    }
)

相关文章:

  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-05-26
相关资源
相似解决方案