搜索
查看
编辑修改
首页
UNITY
NODEJS
PYTHON
AI
GIT
PHP
GO
CEF3
JAVA
HTML
CSS
搜索
小桥流水78
这个屌丝很懒,什么也没留下!
关注作者
热门标签
jquery
HTML
CSS
PHP
ASP
PYTHON
GO
AI
C
C++
C#
PHOTOSHOP
UNITY
iOS
android
vue
xml
爬虫
SEO
LINUX
WINDOWS
JAVA
MFC
CEF3
CAD
NODEJS
GIT
Pyppeteer
article
热门文章
1
第一次使用GitHub_第一次gang交
2
实验5:常用的自动化库_自动化工具需要导入哪些库
3
Mac OS 系统如何访问Library目录_mac library
4
Spring Cloud Gateway 整合 sentinel 实现流控熔断_spring.cloud.sentinel.eager
5
HMC 的升级方法
6
【Spring Security】认证&密码加密&Token令牌&CSRF的使用详解_springsecurity token认证
7
网上订餐系统|基于springboot的网上订餐系统设计与实现(源码+数据库+文档)_在线订餐系统的设计与实现数据表信息
8
2017ROS暑期学校笔记_马庆华机械臂
9
jenkins运行python代码报UnicodeEncodeError: ‘charmap‘ codec can‘t encode characters_charmap' codec can't encode characters in position
10
人工智能和机器学习的应用日益广泛,在医疗健康领域的具体应用是什么?
当前位置:
article
> 正文
Sql Server 常用日期格式
作者:小桥流水78 | 2024-07-05 09:34:02
赞
踩
sql 默认日期格式
进来因为开发原因,经常需要使用日期方面的比较和操作,整理了一下这方面的资料,供大家共享:
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
本文转自周金桥51CTO博客,原文链接:http://blog.51cto.com/zhoufoxcn/167446
,如需转载请自行联系原作者
声明:
本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:
https://www.wpsshop.cn/w/小桥流水78/article/detail/789786
推荐阅读
article
修复
漏洞
Windows
2012
Server
R2(
CVE
-2016-2183)、(
CVE
-201...
【代码】
修复
漏洞
Windows
2012
Server
R2(
CVE
-2016-2183)、(
CVE
-2015-2808...
赞
踩
article
Snap7
Client
_
snap7
server demo...
A PLC client is the most well-known object, almost all PLC ...
赞
踩
article
snap7
_
snap7
server
...
The Snap7 theatre (剧场、讲堂)The purpose of Snap7 is to fully in...
赞
踩
article
【
数据库
SQL
server
】
数据库
系统概述与
DBS
结构
_
数据库
db dbs...
博文《【
数据库
SQL
Server】
数据库
系统概述和
DBS
结构
》为读者揭示了
数据库
系统的宏观蓝图及其底层
结构
。作者以深刻...
赞
踩
article
(一)
jenkins
+bonobo
git
server+
windows
系统自动化部署springb...
(一)
jenkins
+bonobo
git
server+
windows
系统自动化部署
springboot
项目(jenk...
赞
踩
article
appium
出现报错 “
could
not
connect
to
server
are
you
s...
我们直接打开的话,是到了Cus
to
m Server一栏的,但如果我们要用
appium
去定位元素的话,是需要去选择Au
to
...
赞
踩
article
推荐开源
项目
:
ChatGPT
-
Mirror
-
Server
-
Deploy
- 快速搭建您的ChatGP...
推荐开源
项目
:
ChatGPT
-
Mirror
-
Server
-
Deploy
- 快速搭建您的
ChatGPT
镜像服务
项目
地址:...
赞
踩
article
kafka
_
kafka
-
server
-
start
.
bat
'
不是
内部或
外部命令
,也
不是
可运行的程序...
摘要:参考了网上资料做了一个windows下使用
kafka
的实验版本:2.8.0发布日期:2021-04-19下载地址:...
赞
踩
article
[异常处理]
class
kafka
.
common
.UnknownTopicOrPartitionEx...
[异常处理]
class
kafka
.
common
.
UnknownTopicOrPartitionException
(k...
赞
踩
article
Windows
Server 2019
常用命令
_
wind2019server
命令查看
用户
...
Windows
常用命令
services.msc----本地服务设置firewall.cpl----
Windows
防火墙g...
赞
踩
article
windows
server
服务器
安全
加固_
win
server
2019
syn
攻击保护
注册表
...
目录账户口令授权审核策略IP协议
安全
配置设备其他配置操作账户对于管理员账号,要求更改缺省账户名称,并且禁用 guest ...
赞
踩
article
WindowsServer
操作系统
安全_默认情况下,
windows
server
2016
本地用户
组...
一组策略的集合,用来统一修改系统、设置程序CMD输入gpmc.msc打开组策略管理。_默认情况下,
windows
ser...
赞
踩
article
window
s
默认
共享
的打开和关闭_
window
server
关闭
默认
共享
...
window
s
默认
共享
的打开和关闭Windows启动时都会
默认
打开admin$ ipc$ 和每个盘符的
共享
,对于不必要的...
赞
踩
article
windows
server 2019-搭建
文件
共享
服务器
_
windows
sever2019
服务器
...
通过网络提供
文件
共享
服务、提供文件下载和上传服务(类似FTP
服务器
)
文件
共享
使用的是CIFS协议(微软开发,微软全系服务...
赞
踩
article
Cute
Http
File
Server
使用文章_
cute
file
explorer的传输网址...
本文介绍了
Cute
Http
File
Server
,一个无需依赖QQ或微信的免费、开源局域网文件传输软件,支持大文件传输和跨...
赞
踩
article
winxp
文件共享
服务器
搭建,
Cute
Http
File
Server
(
文件共享
服务器
)...
Cute
Http
File
Server
提供了详细的
文件共享
功能,可以让您配置一个简单的HTTP协议共享方案,现在很多...
赞
踩
article
Can'
t
c
on
nec
t
t
o mysql
server
on
hos
t
(以及华为云的端口配置问...
对于学习技术的人员来说,拥有一台自己的服务器是很有必要的,前些时候趁着优惠买了华为云的服务器,但是一直没有安装环境。今天...
赞
踩
article
mysql
启动时报错:Starting MySQL...
ERROR
! The
server
qui...
在配置文件/etc/my.cnf添加错误日志参数,一切问题都解决启动报错时查看日志信息:发现日志输出肯定是配置文件里加入...
赞
踩
article
SQL
Server
2022从
入门
到
精通
...
本文主要介绍了
SQL
Server
2022从
入门
到
精通
,希望能对学习数据库,尤其是学习
SQL
Server
的同学们有所...
赞
踩
article
sql
server
如何
创建
触发器
_
sql
server
创建
触发器
语句...
在示例中,auto_column_insert 是
触发器
的名称,your_table 是操作的表名,column1 和 ...
赞
踩
相关标签
windows
数据库
DB
sql
sqlserver
jenkins
git
spring boot
--------【KafKa】
●数据传输
windows server
安全加固
安全
linux
服务器
运维
局域网文件交互
winxp文件共享 服务器搭建
mysql
adb
android