摘要: #region Assembly Attribute Accessors public string AssemblyTitle { get { object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false); if (attributes.Length > 0) { ... 阅读全文
posted @ 2011-08-25 16:13 litsword 阅读(769) 评论(0) 推荐(1) 编辑
摘要: /* --Desc: 在计算员工当前日期的生日时,需要考虑闰年的问题, 一般在2月29号出生的人在非闰年时生日在3月1号过。 --Environment: SQL SERVER 2008 --Author: Learnsql*/USE Tempdb;GO--创建测试表CREATE TABLE #Employee( [Name] NVARCHAR(10), BirthDay DATETIME);GO --插入数据INSERT INTO #Employee([Name],BirthDay) VALUES('Tom','1970-1-3');INSERT INTO # 阅读全文
posted @ 2011-08-25 14:18 litsword 阅读(3604) 评论(2) 推荐(1) 编辑