删除mongo表中字段

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

猜你喜欢

转载自blog.csdn.net/weixin_40584261/article/details/101011915