摘要:
SQLServer时间日期函数详解,SQLServer,时间日期,1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004-10-15') --返回:2004-10-17 00:00:00.0003. datediff 返回跨两个指定日期的日期和时间边界数。 select datediff(day,'2004-09-01','2004-09-18') --返回:17 select d 阅读全文
posted @ 2013-11-14 22:03
浩凡儿
阅读(203)
评论(0)
推荐(0)
摘要:
public class SqlZr{ public SqlZr() { // // TODO: 在此处添加构造函数逻辑 // } public static string DelSQLStr(string str) { if (str == null || str == "") return ""; str = str.Replace(";", ""); str = str.Replace("'", ""); str = str.Replace("& 阅读全文
posted @ 2013-11-14 17:00
浩凡儿
阅读(533)
评论(0)
推荐(0)
摘要:
C#对List进行排序 阅读全文
posted @ 2013-11-14 13:30
浩凡儿
阅读(674)
评论(0)
推荐(0)
浙公网安备 33010602011771号