删除某个字段 db.yourcollection.update({},{$unset:{'需要删除的字段': 1}} ,{multi:true}); 修改列名 db.yourcollection.updateMany({},{$rename:{"old1":"new1","old2":"new2"}}); db.yourcollection.update({},{$rename:{ "old1":"new1","old2":"new2"}},{multi:true});