摘要: 一:正则代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--staticvoidMain(string[]args){MatchCollectionmc=Regex.Matches(Console.ReadLine(),@"(\S)+");for(in... 阅读全文
posted @ 2010-03-04 11:34 Mars.Chen 阅读(459) 评论(3) 推荐(0) 编辑
摘要: declare@temPassword varchar(50)select @temPassword=isnull([Password],'') fromA where LoginName=@LoginNameselect @temPassword假设@LoginName参数为123当表A中存在一表数据的LoginName为123,且[Password]字段确实为NULL,这时select @te... 阅读全文
posted @ 2009-12-08 10:27 Mars.Chen 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 将A表所有数据插入临时表#ttselect * into #tt from A查询临时表数据select * from #tt删除临时表drop table #tt 阅读全文
posted @ 2009-10-21 11:04 Mars.Chen 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 网络上的:[代码]自己的:[代码] 阅读全文
posted @ 2009-10-13 17:50 Mars.Chen 阅读(484) 评论(2) 推荐(0) 编辑
摘要: [代码]正则:[代码]正则来源:http://www.cnblogs.com/JeffreyZhao/ 阅读全文
posted @ 2009-10-10 16:40 Mars.Chen 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 一直以来都是接触B/S开发,很少做C/S开发,线程就用得更少了,最近做一些工作中用到的小软件终于用上了线程,记录一些心得.场景:1:假设有窗体F,里面有一按钮BtnA,及一Label控件. 2:有一类A,里面有一方法Start().要求:点击按钮BtnA后,根据Start()方法里面操作逻辑,将状态显示在Label中.最开始做的时候是实例化类A的时候将整个窗体或者要改变值的控件传入类A中,然后再在... 阅读全文
posted @ 2009-10-10 15:05 Mars.Chen 阅读(594) 评论(0) 推荐(0) 编辑
摘要: 一直都在外漂泊,人说三十而立,一直都没立起来,现实中没家,就在博客园中找一归属吧. 阅读全文
posted @ 2009-10-09 13:55 Mars.Chen 阅读(243) 评论(2) 推荐(0) 编辑