摘要: 与时间相关的SQL语句/sql获取当前时间/sql时间比较/sql时间格式化 2010年06月21日 星期一 下午 3:54 1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004-10-15') --返... 阅读全文
posted @ 2012-04-22 07:40 猫爷爷 阅读(1234) 评论(1) 推荐(0) 编辑