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

推荐订阅源

AI
AI
TaoSecurity Blog
TaoSecurity Blog
H
Heimdal Security Blog
Help Net Security
Help Net Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Microsoft Azure Blog
Microsoft Azure Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
大猫的无限游戏
大猫的无限游戏
N
News | PayPal Newsroom
V2EX - 技术
V2EX - 技术
博客园 - 【当耐特】
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Secure Thoughts
C
CERT Recently Published Vulnerability Notes
罗磊的独立博客
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
有赞技术团队
有赞技术团队
S
Schneier on Security
S
SegmentFault 最新的问题
Google Online Security Blog
Google Online Security Blog
H
Hacker News: Front Page
The Last Watchdog
The Last Watchdog
Schneier on Security
Schneier on Security
PCI Perspectives
PCI Perspectives
IT之家
IT之家
Project Zero
Project Zero
博客园 - 司徒正美
P
Privacy International News Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Jina AI
Jina AI
Security Latest
Security Latest
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog
aimingoo的专栏
aimingoo的专栏
V
Vulnerabilities – Threatpost
W
WeLiveSecurity
NISL@THU
NISL@THU
Webroot Blog
Webroot Blog
N
Netflix TechBlog - Medium
L
Lohrmann on Cybersecurity

博客园 - 路人

IE/Firefox每次刷新时自动检查网页更新,无需手动清空缓存的设置方法 如何在VS2010中使用Async功能? 如何解决MySQLAdministrator 启动报错 转_关于图片的预加载 检索 COM 类工厂中 CLSID 为{}的组件时失败,原因是出现以下错误: 8007007e 在catch块中throw new Exception的意义 在线取色器-转 数据库查询优化-转 由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式 ... - 路人 - 博客园 DVD-RAM 格式化失败及视频文件分割软件 制作VCD/DVD方法 如何在oracle中导入dmp数据库文件 提高ASP.NET效率的几个方面 注册DLL的两种方法 InnerHtml and InnerText chr(10) chr(13) chr(32) vs2003错误求救 不能上网修复网络协议 存储过程1
SQLSERVER中日期显示样式(网络收集)
路人 · 2008-09-17 · via 博客园 - 路人

SELECT   convert(char,你的日期字段,120)   as   date2   FROM   table

mssql默认以系统时间格式输出,你可以调整系统的时间格式来解决

当然是在程序里解决比较灵活,convert(char,date,N)输出的各中样式
N   日期样式   
0   04   2   2005   9:06AM   
1   04/02/05   
2   05.04.02   
3   02/04/05   
4   02.04.05   
5   02-04-05   
6   02   04   05   
7   04   02,   05   
8   09:06:18   
9   04   2   2005   9:06:18:857AM   
10   04-02-05   
11   05/04/02   
12   050402   
13   02   04   2005   09:06:18:857   
14   09:06:18:857   
20   2005-04-02   09:06:18   
21   2005-04-02   09:06:18.857   
22   04/02/05   9:06:18   AM   
23   2005-04-02   
24   09:06:18   
25   2005-04-02   09:06:18.857   
100   04   2   2005   9:06AM   
101   04/02/2005   
102   2005.04.02   
103   02/04/2005   
104   02.04.2005   
105   02-04-2005   
106   02   04   2005   
107   04   02,   2005   
108   09:06:18   
109   04   2   2005   9:06:18:857AM   
110   04-02-2005   
111   2005/04/02   
112   20050402   
113   02   04   2005   09:06:18:857   
114   09:06:18:857   
120   2005-04-02   09:06:18   
121   2005-04-02   09:06:18.857   
126   2005-04-02T09:06:18.857   

posted on 2008-09-17 11:45  路人  阅读(842)  评论()    收藏  举报