上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 65 下一页
摘要: 表tblCard: {"cNo":"11","oRDate":ISODate("2017-08-01T00:00:00.000+0800")} {"cNo":"12","oRDate":ISODate("2017-07-01T00:00:00.000+0800")} {"cNo":"13","oRD 阅读全文
posted @ 2017-11-23 12:03 94cool 阅读(972) 评论(0) 推荐(0)
摘要: c# 使用MS SqlServer,连接成功,但是还报异常A connection was successfully established with the server, but then an error occurred during the login process. (provider 阅读全文
posted @ 2017-11-16 17:40 94cool 阅读(6346) 评论(0) 推荐(0)
摘要: class Operation { internal Tuple<int, int> FindMinMax(List<int> list) { int maximum = int.MinValue, minimum = int.MaxValue; list.ForEach(n => { minimu 阅读全文
posted @ 2017-10-10 14:40 94cool 阅读(353) 评论(0) 推荐(0)
摘要: using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Spreadsheet; /// <summary> /// 导出Excel /// </summar 阅读全文
posted @ 2017-09-15 16:57 94cool 阅读(2091) 评论(0) 推荐(0)
摘要: using Aspose.Cells; void WriteToExcel(string filePath, List<object[]> datas, string sheetName = "Sheet0") { try { Workbook workBook = new Workbook(); 阅读全文
posted @ 2017-09-15 16:54 94cool 阅读(964) 评论(0) 推荐(0)
摘要: 表: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 阅读(7577) 评论(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 阅读(1127) 评论(0) 推荐(0)
摘要: #region 索引 //IndexKeysDocument doc = new IndexKeysDocument();//新建索引 //2d 平面坐标索引,适用于基于平面的坐标计算。也支持球面距离计算,不过官方推荐使用2dsphere索引 //BsonValue value = BsonValue.Create("2d");//创建2d索引 //2dsphere 几何球体索引... 阅读全文
posted @ 2017-08-02 11:20 94cool 阅读(487) 评论(0) 推荐(0)
摘要: from:https://yq.aliyun.com/articles/48885 最近遇到了一个问题,在mysql中如何完成节点下的所有节点或节点上的所有父节点的查询?在Oracle中我们知道有一个Hierarchical Queries可以通过CONNECT BY来查询,但是,在MySQL中还没 阅读全文
posted @ 2017-07-29 15:57 94cool 阅读(6612) 评论(0) 推荐(0)
摘要: from:https://my.oschina.net/132722/blog/168274 比如我有一个user类,他包含一个标签属性,这个标签是一个数组,数组里面的元素是内嵌文档,格式如下:<!-- lang: js --> { "_id" : "195861", "tags" : [ { "t 阅读全文
posted @ 2017-07-15 11:46 94cool 阅读(3366) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 65 下一页