摘要:
db.yourcollection.update({ "需要删除的字段": { "$exists": true } }, { "$unset": { "需要删除的字段":null } }, { multi: true }); 阅读全文
posted @ 2023-05-16 15:34
拾月凄辰
阅读(245)
评论(0)
推荐(0)
摘要:
将update_time字段的值设置为create_time的值: db.collection_name.find().forEach( function(item){ db.collection_name.update( {_id: item._id, create_time: {$exists: 阅读全文
posted @ 2023-05-16 14:59
拾月凄辰
阅读(248)
评论(0)
推荐(0)

浙公网安备 33010602011771号