09 2021 档案

摘要:1 select top (10) LogId,LoginId,SPName,ServerName,LoginTime,ExitTime from LoginLogs 2 where LogId not in (select top(10 *(3-1)) LogId from LoginLogs) 阅读全文
posted @ 2021-09-07 11:30 元数据 阅读(51) 评论(0) 推荐(0)
摘要:第一种实现方法: 首先需要引用名称控件:using System.Diagnostics; 也可以把计数变量放在配置文件当中,方便以后的修改,下面是具体实现代码: 1 Process[] processes = Process.GetProcesses(); //获得本机所有应用进程 2 int c 阅读全文
posted @ 2021-09-06 18:59 元数据 阅读(1197) 评论(0) 推荐(0)
摘要:使用事务能有效的避免更新数据时,旧数据没更新,新数据已经添加的情况。当然也可以通过SQL本身运行事务。 1 public static bool UpdateByTran(List<string>sqlList) 2 { 3 SqlConnection conn = new SqlConnectio 阅读全文
posted @ 2021-09-01 22:57 元数据 阅读(739) 评论(0) 推荐(0)