Error en TO_DATE
Publicado por ManuelS (3 intervenciones) el 26/03/2021 15:52:02
Estimados, alguien que me pueda ayudar, tengo una tabla en oracle, la cual como fecha lleva un campo varchar2 en el cual almacena fechas. Al crear una Vista materializada, necesaria para el proceso que realiza la data, al poner el
TO_DATE(YCH_ON,'YYYY-MM-DD') me da el error:
ORA-01861: el literal no coincide con la cadena de formato
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.
En otra Tabla pasa sin problema, pero en esta sale el error. Como puedo corregirlo.
Agradezco el apoyo.
TO_DATE(YCH_ON,'YYYY-MM-DD') me da el error:
ORA-01861: el literal no coincide con la cadena de formato
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.
En otra Tabla pasa sin problema, pero en esta sale el error. Como puedo corregirlo.
Agradezco el apoyo.
Valora esta pregunta
0