08 2012 档案

摘要:与时间相关的SQL语句/sql获取当前时间/sql时间比较/sql时间格式化2010年06月21日 星期一 下午 3:541. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004-10-15') --返回:2004-10-17 00:00:00.000 3. datediff 返回跨两个指定日期的日期和时间边界数。 select datediff(day,'2004-09-01','2004 阅读全文
posted @ 2012-08-30 14:03 易水寒2012 阅读(99) 评论(0) 推荐(0)
摘要:public void SaveAsExcel(string path, DataGridView gridView) { saveAsExcel(path, gridView); System.GC.Collect(); } private void saveAsExcel(string path,DataGridView gridView) { object objMissing = System.Reflection.Missing.Value; ... 阅读全文
posted @ 2012-08-08 15:24 易水寒2012 阅读(166) 评论(0) 推荐(0)