","PHP"]} },{$set: { age:100 }}) //基于$nin的文档更新
三、演示用到的示例文档
var persons = [{
name:"robinson.cheng"...,
age:25,
email:"robinson.cheng@qq.com",
score:{c:89,m:96,e:87},
country:"USA",
books...:27,
email:"henry.ye@qq.com",
score:{c:89,m:86,e:67},
country:"China",
books:["JS","JAVA...:27,
email:"fred.shu@qq.com",
score:{c:45,m:65,e:99},
country:"China",
books:["JS","JAVA...persons.length;i++){
db.persons.insert(persons[i])
}
var persons = db.persons.find({name:"robinson.cheng