All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
SQL数据库高级教程:SQL SELECT INTO 语句_[SQL Server教程]
PHP实例:用PHP实现windows风格的树型菜单_php资料_编程技术
教你学会XML Web Service 的基础_[XML教程]
ASP.NET改善application对象加快存储速度_[Asp.Net教程]
创建一个简单的Delphi程序
如何在删除并重新安装,IIS,之后修复,IIS,映射_[Asp.Net教程]
PHP,内存管理器符号比较多个溢出漏洞_php资料_编程技术
C#3.0新特性之隐式类型局部变量的使用_[Asp.Net教程]
ASP.NET,2.0打造购物车和支付系统之二_[Asp.Net教程]
菜鸟到高手:SQL开发进阶常用精妙语句_[SQL,Server教程]
Reading number is top 10 pictures
乳娘帕梅拉安德森3
Very beautiful interior decoration
2012 national geographic daily picture7
The beginning and end
I also want to live a June 1 children's day, dad
Summer is most suitable for young people to travel in China7
海底兵马俑
Japan sexy beauty passion photo
9.3阅兵全景图1-抗战老兵和英雄连队梯队
看到这个手速,决定过年就让我家猫帮我抢红包了。。
Download software ranking
Tram sex maniac 2 (H) rar bag12
传奇私服架设教程
Boxer's Top ten classic battle4
星际争霸1.08硬盘免安装版
WebService在.NET中的实战应用教学视频 → 第3集
Unix video tutorial13
matrix1
变速齿轮3.26
Unix video tutorial4
中国结婚习俗实录
归海一刀 published in(发表于) 2014/2/1 0:11:09 Edit(编辑)
Sql,Server,常用日期格式_[SQL,Server教程]

Sql,Server,常用日期格式_[SQL,Server教程]

Sql Server 常用日期格式_[SQL Server教程]

SQL Server中文版的默认的日期字段datetime格式是yyyy-mm-dd Thh:mm:ss.mmm
例如:
select getdate()
2004-09-12 11:06:08.177
整理了一下SQL Server里面可能经常会用到的日期格式转换方法:
举例如下:
select CONVERT(varchar, getdate(), 120 )
2004-09-12 11:06:08


select replace(replace(replace(CONVERT(varchar, getdate(), 120 ),'-',''),' ',''),':','')
20040912110608


select CONVERT(varchar(12) , getdate(), 111 )
2004/09/12


select CONVERT(varchar(12) , getdate(), 112 )
20040912


select CONVERT(varchar(12) , getdate(), 102 )
2004.09.12


select CONVERT(varchar(12) , getdate(), 101 )
09/12/2004


select CONVERT(varchar(12) , getdate(), 103 )
12/09/2004


select CONVERT(varchar(12) , getdate(), 104 )
12.09.2004


select CONVERT(varchar(12) , getdate(), 105 )
12-09-2004


select CONVERT(varchar(12) , getdate(), 106 )
12 09 2004


select CONVERT(varchar(12) , getdate(), 107 )
09 12, 2004


select CONVERT(varchar(12) , getdate(), 108 )
11:06:08


select CONVERT(varchar(12) , getdate(), 109 )
09 12 2004 1


select CONVERT(varchar(12) , getdate(), 110 )
09-12-2004


select CONVERT(varchar(12) , getdate(), 113 )
12 09 2004 1


select CONVERT(varchar(12) , getdate(), 114 )
11:06:08.177







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.