惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Check Point Blog
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
IT之家
IT之家
月光博客
月光博客
U
Unit 42
K
Kaspersky official blog
T
Threatpost
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
GbyAI
GbyAI
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
云风的 BLOG
云风的 BLOG
酷 壳 – CoolShell
酷 壳 – CoolShell
I
InfoQ
Engineering at Meta
Engineering at Meta
Recorded Future
Recorded Future
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Security Archives - TechRepublic
Security Archives - TechRepublic
Webroot Blog
Webroot Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Schneier on Security
S
Secure Thoughts
The Register - Security
The Register - Security
B
Blog RSS Feed
The Last Watchdog
The Last Watchdog
P
Palo Alto Networks Blog
爱范儿
爱范儿
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
LINUX DO - 热门话题
C
Cisco Blogs
Spread Privacy
Spread Privacy
F
Full Disclosure
博客园 - 聂微东
T
The Blog of Author Tim Ferriss

博客园 - Jackie Yao

美国vps哪个比较好,vps国内访问速度最快! http://t.sohu.com/u/416461865 吃什么水果减肥? GPS导航仪准确度遭质疑-www.daohang2012.com GPS导航仪把车“导”进海-www.daohang2012.com 广州虚拟主机 www.48wo.com sql05 变量小技巧 boxy 你用了吗?? 赞一个 mssql2005 的并发处理. js 繁体转简体 The Digital Lifestyle Developer Blog[推荐] [转]escape,encodeURI,encodeURIComponent函数比较 正则表达式大全. YAHOO工具库提供的方法[转贴] [转]html控件、html服务器控件和web服务器控件的区别 [收藏]ASP.NET的底层的工作机制介绍 [转]asp.net2.0实现treeview无限级菜单树 [转]asp.net 2.0 TreeView客户端个性化控制 Build Google IG like Ajax Start Page in 7 days using ASP.NET Ajax and .NET 3.0 ASP.NET Application Life Cycle Overview for IIS 5.0 and 6.0
{转}sql日期格式转换
Jackie Yao · 2007-12-17 · via 博客园 - Jackie Yao

在sql中,smalldatetime及datetime型的数据显示不是那么让人满意,因此我找了些格式化的方法列出来"

convert(char(10),datetime,101)


在数据库取出来的时候就转换好
 select getdate()
 
 2006-05-12 11:06:08.177
 
 我整理了一下SQL Server里面可能经常会用到的日期格式转换方法:
 
 举例如下:
 select Convert(varchar(10),getdate(),120)

2006-05-12 
 select CONVERT(varchar, getdate(), 120 )
 2006-05-12  11:06:08

 select replace(replace(replace(CONVERT(varchar, getdate(), 120 ),'-',''),' ',''),':','')
 20060512110608
 
 select CONVERT(varchar(12) , getdate(), 111 )
 2006/05/12
 
 select CONVERT(varchar(12) , getdate(), 112 )
 20060512

 select CONVERT(varchar(12) , getdate(), 102 )
 2006.05.12
 
 其它几种不常用的日期格式转换方法:

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

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

 select CONVERT(varchar(12) , getdate(), 105 )
 12-05-2006

 select CONVERT(varchar(12) , getdate(), 106 )
 12 05 2006

 select CONVERT(varchar(12) , getdate(), 107 )
 05 12, 2006

 select CONVERT(varchar(12) , getdate(), 108 )
 11:06:08
 
 select CONVERT(varchar(12) , getdate(), 109 )
 0512 2006 1

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

 select CONVERT(varchar(12) , getdate(), 113 )
 12 052006

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