源码
资讯
  当前位置:源码网网络学院网络编程.NET教程 → 记存储过程中经常用到的本周,本月,本年函数
特别推荐
热点TOP10
本周下载排行
本月下载排行
记存储过程中经常用到的本周,本月,本年函数
日期:2006年5月20日 作者: 人气: 查看: [大字体 中字体 小字体]
 1Dateadd(wk,datediff(wk,0,getdate()),-1)                             
2Dateadd(wk,datediff(wk,0,getdate()),6)
3
4Dateadd(mm,datediff(mm,0,getdate()),0)
5Dateadd(ms,-3,dateadd(mm,datediff(m,0,getdate())+1,0))
6
7Dateadd(yy,datediff(yy,0,getdate()),0)
8Dateadd(ms,-3,DATEADD(yy, DATEDIFF(yy,0,getdate())+1, 0))

(出处:源码网)

百度搜索 Google搜索 雅虎搜索 我要投稿
相关文章: 相关软件: