08 2017 档案

摘要:表:tblCard 要更新的字段:tPAFlow 值字段: pFlow 过滤 条件:{"lCycle":2} db.tblCard.find({"lCycle":2}).forEach( function(item){ db.tblCard.update({"_id":item._id},{"$se 阅读全文
posted @ 2017-08-18 17:01 94cool 阅读(7578) 评论(0) 推荐(0)
摘要:样例数据: { "_id" : "1064621564857", "cNo" : "1064621564857", "exPCodes" : [ { "pType" : NumberInt(1), "cDate" : ISODate("2017-07-27T10:30:11.783+0800") } 阅读全文
posted @ 2017-08-17 14:19 94cool 阅读(1129) 评论(0) 推荐(0)
摘要:#region 索引 //IndexKeysDocument doc = new IndexKeysDocument();//新建索引 //2d 平面坐标索引,适用于基于平面的坐标计算。也支持球面距离计算,不过官方推荐使用2dsphere索引 //BsonValue value = BsonValue.Create("2d");//创建2d索引 //2dsphere 几何球体索引... 阅读全文
posted @ 2017-08-02 11:20 94cool 阅读(489) 评论(0) 推荐(0)