MongoDB删除已有字段

db.yourcollection.update({},{$unset:{"需要删除的字段":""}},false,true)

猜你喜欢

转载自blog.csdn.net/yiluxiangqian7715/article/details/53258259
今日推荐