摘要:
/// <summary> /// 满足条件后1秒钟执行 /// </summary> public static System.Timers.Timer tXMGSZSJOA = new System.Timers.Timer(1000);//实例化timer类,设置间隔时间为6000毫秒(1秒钟 阅读全文
摘要:
什么是进程? 当一个程序开始运行时,它就是一个进程,进程包括运行中的程序和程序所使用到的内存和系统资源。 而一个进程又是由多个线程所组成的。 什么是线程? 线程是程序中的一个执行流,每个线程都有自己的专有寄存器(栈指针、程序计数器等),但代码区是共享的,即不同的线程可以执行同样的函数。 什么是多线程 阅读全文
摘要:
(1)首先声明Timer变量: //一定要声明成局部变量以保持对Timer的引用,否则会被垃圾收集器回收! private System.Threading.Timer timerClose; (2)在上述自动执行代码后面添加如下Timer实例化代码: // Create a timer threa 阅读全文
摘要:
select count(*) '总字段数', ISNULL(ISNULL(sum(case when isnullable=0 then 1 end),null),null) as '非空字段数' from syscolumns where id=object_id( 'EmpInfo') --空 阅读全文
摘要:
1.最新版本 2.打开文件,将包含以下文件: Ext.Net.dll Ext.Net.Utilities.dll Ext.Net.xml Newtonsoft.Json.dll Newtonsoft.Json.xml 3.打开 Visual Studio,创建C#网站项目 打开菜单创建网站 弹出"创 阅读全文
摘要:
1、 <script> document.Write("Hello wrrld!!!"); </script> 2、 <script language="JavaScript"> document.write("Hello World!!"); </script> 3、 <script langua 阅读全文
摘要:
// 自定义异常,继承自Exception public class MyException : Exception { public override string Message { get { return "开始日期或者结束日期格式不正确"; } } } 在需要用的时候抛出 throw ne 阅读全文
摘要:
替换语句 将所有lirnming列有2011的数据修改成2014 update tab set lieming = replace(lieming,'2011','2014'); 阅读全文