- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
日期函数和字符串函数(Date functions and string functions)
日期函数和字符串函数(Date functions and string functions)
I Jichou heart and moon, with the wind until Yelang west. Think home, Bu Yueqing, Li Li, recalling the younger brother, look at the clouds, daytime sleep. Sacrifice strengthens bold, dare to teach new days. Let off. Warm wind birds broken, high heavy shadows. Date function
Getdate ()
Get the current time, you can set up to get a variety of time formats
Datepart (date, part, date)
A portion of the specified time and date when the minutes and seconds.
DateDiff (date section, date 1, date 2)
What is the difference in time between the specified date 1 and the date 2?
DateAdd (date, part, value, expression, date)
Calculates the specified time, plus the time length specified by the expression
Take a part of the time
Select datepart (YY, getdate ()) --year
Select datepart (mm, getdate ()) --month
Select datepart (DD, getdate ()) --day
Select datepart (HH, getdate ()) --hour
Select datepart (MI, getdate ()) --min
Select datepart (SS, getdate ()) --sec
- what day of the week?
Set datefirst 1
Select datepart (weekday, getdate ()) --weekday
String time
Select getdate () -03/11/12
Select convert (char, getdate (), 101) -09/27/2003
Select convert (char, getdate (), 102) -2003.11.12
Select convert (char, getdate (), 103) -27/09/2003
Select convert (char, getdate (), 104) -27.09.2003
Select convert (char, getdate (), 105) -27-09-2003
Select convert (char, getdate (), 106) -27, Sep, 2003
Select, convert (char, getdate (), 107) --Sep 27, 2003
Select, convert (char, getdate (), 108) --11:16:06
Select convert (char, getdate (), 109) --Sep 272003 11:16:28:746AM
Select, convert (char, getdate (), 110) --09-27-2003
Select, convert (char, getdate (), 111) --2003/09/27
Select, convert (char, getdate (), 112) -Select rtrim (convert (char), getdate (102) (convert) + + (char, getdate), (108)) -2003.11.12 11:03:41
Integer time
Select, convert (int, convert (char (10), getdate ()) 112) -Select, datepart (HH, getdate ()), *1000
您可能关注的文档
- 建筑工程计量与计价练习题答案(Construction engineering measurement and valuation exercises answer).doc
- 建筑工程造价结算审核方法分析(Construction project cost settlement audit method analysis).doc
- 建筑工程项目管理综合练习(Comprehensive practice of construction project management).doc
- 建筑师命题(Architect thesis).doc
- 建筑工程施工测量方案(Construction project survey plan).doc
- 建筑常识1(Architectural knowledge 1).doc
- 建立高效能的劳动力队伍白皮书(Establish a white paper on efficient workforce).doc
- 建筑弱电工程师习题(Building weak engineer problem).doc
- 建筑新人们搞不懂的小问题汇总(A collection of small problems that new people do not understand).doc
- 建筑施工与监理(建筑安全基本知识)(Building construction and supervision (basic knowledge of building safety)).doc
- 2025四川南充市公路管理局南充市水务局遴选3人笔试备考题库附答案解析.docx
- 2025年清水河县事业单位联考招聘考试历年真题完美版.docx
- 2025年正安县事业单位联考招聘考试历年真题完美版.docx
- 2025年金沙县事业单位联考招聘考试真题汇编新版.docx
- 2025年乐业县辅警招聘考试真题汇编及答案1套.docx
- 2025年新龙县事业单位联考招聘考试历年真题附答案.docx
- 2025年淮阳县事业单位联考招聘考试历年真题含答案.docx
- 2025年紫金县事业单位联考招聘考试真题汇编含答案.docx
- 2025年永福县事业单位联考招聘考试历年真题推荐.docx
- 2025年睢县事业单位联考招聘考试历年真题含答案.docx
最近下载
- 《职业能力倾向测验》D类.pptx VIP
- 司法鉴定程序通则课件.ppt VIP
- ZZ027 婴幼儿保育赛项正式赛卷及评分标准完整版包括所有附件-2023年全国职业院校技能大赛赛项正式赛卷.pdf VIP
- 焊接工程技术交底.docx VIP
- (2025年)体育教师考编题库(附答案).docx VIP
- 海浦蒙特MTCC-V2A经典系列别墅电梯控制柜用户手册-中-V1.0.pdf VIP
- 糖尿病周围神经病变中医诊疗方案(2021年版).doc VIP
- ZZ029 养老照护赛项正式赛卷完整版包括所有附件-2023年全国职业院校技能大赛赛项正式赛卷.pdf VIP
- 2025课堂惩罚 主题班会:马达加斯加企鹅课堂惩罚 课件(共22张PPT内嵌视频).pptx VIP
- 糖尿病周围神经病变中医临床诊疗指南(2016年版).pdf VIP
原创力文档


文档评论(0)