摘要:
首先是分组,mysql支持rank() over (partition by xxx order by xxx)方式,可以通过该方式分区排序后取分组后的第N条记录,如下: # 通过Name分组,通过Val排序,取每个分组中的第二条记录 select * from ( select name,val, 阅读全文
摘要:
System.Net.NetworkInformation命名空间下提供IPGlobalProperties类,用来提供本地计算机有关的网络连接信息,获取本机可用端口的使用方式如下: using System; using System.Collections.Generic; using Syst 阅读全文
摘要:
Microsoft.Extensions.DependencyInjection //添加Nuget包Microsoft.Extensions.DependencyInjection var serviceCollection = new ServiceCollection(); serviceCo 阅读全文
摘要:
1.现象说明(仅测试FileShare=ReadWrite时候的影响,FileAccess保持一致, 如果FileAccess不一致的情况,另论,此处不讨论): a. FileAccess=Read, FileShare=ReadWrite未释放之后再打开文件: FileStream file; f 阅读全文