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字段 ...