1、运行命令“ db.imooc_collection.update({x:1}, {x:999})”进行更新操作;
2、运行命令“db.imooc_collection.update({z:100}, {$set:{y:99}})”更新指定信息;
1、运行命令“ db.imooc_collection.update({x:1}, {x:999})”进行更新操作;
2、运行命令“db.imooc_collection.update({z:100}, {$set:{y:99}})”更新指定信息;