sql时间格式转换大全
来源:互联网 发布:centos 开源网盘 编辑:程序博客网 时间:2024/05/16 04:35
select convert(datetime ,'20080531',120)---字符转换成日期
CONVERT (data_type[(length)], expression [, style])
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
- sql 时间格式转换大全
- sql 时间格式转换大全
- SQL时间格式转换大全
- sql时间格式转换大全
- sql时间格式转换大全
- sql时间格式转换大全
- SQL日期时间格式自由转换大全
- SQL日期时间格式转换大全
- sql日期时间格式转换大全
- 时间格式转换大全
- SQL时间格式大全
- sql时间格式转换
- sql 时间格式转换
- SQL时间转换格式
- sql 时间格式转换
- Sql时间格式转换
- sql时间格式转换
- SQL 时间转换大全
- Oracle中Decode()函数使用技巧
- asp.net mvc3 MySql数据库,保存数据库乱码
- org.apache.jasper.JasperException: File "/oscache" not found
- Release模式禁用NSLog
- 基于Gstreamer的TI DSP视频处理框架
- sql时间格式转换大全
- 利用TreeSet进行排序操作
- 研究记录--vslam 与SFM区别与联系
- oralce实战第七天--pl/sql的进阶、分页存储过程、例外和视图
- 【android入门】之Android Canvas绘图抗锯齿解决方法
- C_语法概念_print类型函数详解
- USB移动硬盘巧修复
- 多线程编程
- 基于ADI Blackfin系列DSP处理器的C语言编程与优化——C编程规则