会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大排档王师傅
博客园
首页
新随笔
联系
订阅
管理
01 2021 档案
对mongodb中no field 数据进行补充
摘要:db.collection.update_many({field: {'$exists': False}}, {'$set': {field: ''}})
阅读全文
posted @
2021-01-06 09:45
大排档王师傅
阅读(134)
评论(0)
推荐(0)
用一字段更改mongodb另一字段值(加减,复制等等)
摘要:for item in db.collection.find({field1: XXX}): db.collcetion.update_one( {'_id': item['_id']}, {'$set': {field3: item[field4]-item[field5]}} )暂时没想到更好的
阅读全文
posted @
2021-01-06 09:34
大排档王师傅
阅读(606)
评论(0)
推荐(0)
公告