Hoe kan ik deze datum van de snaar naar datetime in orakel converteren.
2011-07-28T23:54:14Z
Als u deze code gebruikt, wordt een fout gegenereerd:
TO_DATE('2011-07-28T23:54:14Z', 'YYYY-MM-DD HH24:MI:SS')
Hoe kan dit worden gedaan?
Error report:
SQL Error: ORA-01861: literal does not match format string
01861. 00000 - "literal does not match format string"
*Cause: Literals in the input must be the same length as literals in
the format string (with the exception of leading whitespace). If the
"FX" modifier has been toggled on, the literal must match exactly,
with no extra whitespace.
*Action: Correct the format string to match the literal.
Update: -
TO_DATE ('2011-07-28T23: 54: 14Z', 'YYYY-MM-DD "T" HH24: MI: SS "Z"')
Ik zie alleen de datum niet de tijd in de kolom
28-JUL-11