Oracle to_date 函数.需要口罩 [英] Oracle to_date function. Mask needed

查看:37
本文介绍了Oracle to_date 函数.需要口罩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有来自此类 xml 文件的日期字符串:'2010-09-09T22:33:44.OZ'

I have string of date from xml file of such kind: '2010-09-09T22:33:44.OZ'

我只需要提取日期和时间.我想忽略符号 T 和 .OZ(时区).我应该使用哪种面膜?提前致谢

I need to extract only date and time. I want to ignore symbol T and .OZ (time zone). Which mask I should use? Thanks in advance

推荐答案

select TO_DATE('2010-09-09T22:33:44.OZ'
              ,'YYYY-MM-DD"T"HH24:MI:SS".OZ"')
from dual;

9/09/2010 10:33:44 PM

这篇关于Oracle to_date 函数.需要口罩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆