摘要: 1.$inc: 对数字字段内容进行修改 db.getCollection('student').update( {'age':19}, {$inc:{'score':-20}} ) 2.$set :对字段内容进行修改 3.$unset :对字段内容进行删除 db.getCollection('stu 阅读全文
posted @ 2018-05-16 22:30 江山一族 阅读(154) 评论(0) 推荐(0) 编辑