Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 TIMESTAMP 字符串,需要在 Oracle 中转换为日期时间,我尝试了几种格式掩码但失败了,知道吗?
to_timestamp('2013-10-15T20:12:56.24584+0100','YYYY-MM-DDTHH24:MI:SS.SSSSSTZHTZM')
要做到这一点,您应该:
TO_TIMESTAMP_TZ
FF
SSSSS
T
"T"
这有效:
SELECT TO_TIMESTAMP_TZ('2013-10-15T20:12:56.24584+0100','YYYY-MM-DD"T"HH24:MI:SS.FFTZHTZM') FROM dual;