01 2021 档案

摘要:db.collection.update_many({field: {'$exists': False}}, {'$set': {field: ''}}) 阅读全文
posted @ 2021-01-06 09:45 大排档王师傅 阅读(134) 评论(0) 推荐(0)
摘要: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)