1、根据username修改age
>db.employee.update({username:'jim'},{$set:{age:22}},false,true);
db.collection.update(criteria,objNew,[……]
1、根据username修改age
>db.employee.update({username:'jim'},{$set:{age:22}},false,true);
db.collection.update(criteria,objNew,[……]