mongodb 如何删除 字段值为 json对象中的某个字段值
例如: { attributes: { birthday:'1988-01-01', name: 'aq' } } birthday是attributes字 ...
例如: { attributes: { birthday:'1988-01-01', name: 'aq' } } birthday是attributes字 ...
查询语句 db.getCollection("A表").update( { } ,{ $unset:{"a":1} } , {multi: true} ) 作用:删除A表中a字段 ...