摘要: 如果多个线程使用同一个AutoResetEvent或者ManualResetEventSlim实例,则可以使用AutoResetEvent和ManualResetEventSlim来实现线程同步; 1 AutoResetEvent 1.1 构造方法 new AutoResetEvent(bool) 阅读全文
posted @ 2020-10-31 13:00 温故纳新 阅读(327) 评论(0) 推荐(0) 编辑
摘要: create table #t(id int,age int) insert into #t(id,age)values(12,122),(8,88),(8,88),(8,88),(8,88)select * from #t -- 1 计算基本组的记录数=5(记录数)/3(指定的ntile组数)=1 阅读全文
posted @ 2020-10-30 15:17 温故纳新 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 解决方法: https://www.jianshu.com/p/004f47f908c5 阅读全文
posted @ 2020-10-30 14:43 温故纳新 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 解决方法: 在Web.config文件中system.web中添加如下配置: <!--.asmx支持post请求或者get请求调用(WebService "因 URL 意外地以 结束,请求格式无法识别" 的解决方法)--> <webServices> <protocols> <add name= " 阅读全文
posted @ 2020-10-30 13:22 温故纳新 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 在Web.config文件中configuration节中添加如下配置: <!--设置默认文档--> <system.webServer> <modules> </modules> <directoryBrowse enabled="true" /> <defaultDocument> <files 阅读全文
posted @ 2020-10-30 13:19 温故纳新 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 视图v_item_inf3执行下面的语句,执行时间超过1分钟 select top 10 * from v_item_inf3 order by id desc 但是视图v_item_inf4 执行同样的语句1秒都不用 原因:由于v_item_inf4 中的聚集索引是第一个列,而v_item_inf 阅读全文
posted @ 2020-10-27 18:41 温故纳新 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Git 保存的不是文件的变化或者差异,而是一系列不同时刻的 快照 。 在进行提交操作时,Git 会保存一个提交对象(commit object)。 知道了 Git 保存数据的方式,我们可以很自然的想到——该提交对象会包含一个指向暂存内容快照的指针。 但不仅仅是这样,该提交对象还包含了作者的姓名和邮箱 阅读全文
posted @ 2020-10-26 09:13 温故纳新 阅读(67) 评论(0) 推荐(0) 编辑
摘要: C# 无法将空字符串(string.Empty)转换为 int long bool decimal double float,但是null可以转换为其它类型 string x = string.Empty; //int _int = Convert.ToInt32(x); // 无法转换,报错 "输 阅读全文
posted @ 2020-10-21 09:10 温故纳新 阅读(1121) 评论(0) 推荐(0) 编辑
摘要: 使用git pull 报错 The following untracked working tree files would be overwritten by merge: 解决方法 需要使用 git clean 命令来清除 untracked 文件 依次执行以下命令: git clean -n 阅读全文
posted @ 2020-10-20 19:03 温故纳新 阅读(1978) 评论(0) 推荐(0) 编辑
摘要: sql server 扩展属性 -- 查询 SysRole 表的字段和字段字段注释信息 SELECTA.name AS TableName,B.name AS FieldName,T.Name AS FieldTypeName,B.max_length AS FieldMaxLength,C.val 阅读全文
posted @ 2020-10-14 12:49 温故纳新 阅读(270) 评论(0) 推荐(0) 编辑