数据库
jia66
这个作者很懒,什么都没留下…
展开
-
CONVERT函数
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )expression : 任何合法的sql表达式data_type :任何sql类型Is the target system-supplied data type, including bigint and sql_variant. User-defined dat转载 2006-11-21 10:21:00 · 655 阅读 · 0 评论 -
sql server日期时间函数
Sql Server中的日期与时间函数 1. 当前系统日期、时间 select getdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,2004-10-15) --返回:2004-10-17 00:00:00.0003. datediff 返回跨转载 2006-11-21 10:28:00 · 508 阅读 · 0 评论