MongoDB 更新数据库 删除field

MongoDB 更新数据库 删除field db.collections.update({},{$unset:{field:true}}, {multi:true}) db 数据库关键字 collections 集合名称 update 函数关键字 第一个参数:查找范围,{}表示所有 第二个参数:要update的新值,设置$unset表示删除其中的field,field对应的true的值随意设置 第
相关文章
相关标签/搜索