2017年9月4日
摘要: update() db.collection.update( criteria, objNew, upsert, multi ) 四个参数的说明如下: criteria: update的查询条件,类似sql update查询内where后面的 objNew: update的对象和一些更新的操作符(如 阅读全文
posted @ 2017-09-04 22:16 michellexiaoqi 阅读(6996) 评论(0) 推荐(0) 编辑
摘要: 一、find方法 db.collection_name.find();查询 查询所有结果 1) db.users.find();类似于select * from users; 指定返回那些列(键) 2) db.users.find({}, {'name' : 1, 'skills' : 1}); 类 阅读全文
posted @ 2017-09-04 10:42 michellexiaoqi 阅读(2429) 评论(0) 推荐(0) 编辑