2016年1月26日
摘要: db.classes.update({"count":{$gt:20}},{$set:{"name":"c4"}},false,false) 存在更新一条记录,不存在不插入upsert,multidb.classes.update({"count":{$gt:20}},{$set:{"name":"... 阅读全文
posted @ 2016-01-26 22:21 jayruan 阅读(298) 评论(0) 推荐(0)
摘要: aggregate(pipeline,options)指定 group 的 keys, 通过操作符$push/$addToSet/$sum等实现简单的 reduce, 不支持函数/自定义变量group({ key, reduce, initial [, keyf] [, cond] [, final... 阅读全文
posted @ 2016-01-26 02:51 jayruan 阅读(427) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/miyatang/article/details/22059165SQL Terms, Functions, and Concepts MongoDB Aggregation OperatorsWHERE $match... 阅读全文
posted @ 2016-01-26 02:33 jayruan 阅读(180) 评论(0) 推荐(0)