I am trying to do an update on a time and a date field. Both are defined as DATE.
UPDATE XXXXX
SET MSG_TIME_ACK = '01-01-00 9:18:16' , MSG_DATE_ACK = '02-01-02'
WHERE A = 'CON' AND
B IS NULL
This gives an invalid month error, solved by using JAN instead of 01.
However:
UPDATE XXXXX
SET MSG_TIME_ACK = '01-JAN-00 9:18:16' , MSG_DATE_ACK = '02-JAN-02'
WHERE A = 'CON' AND
B IS NULL
results in the stalemate situation that the length of the string is to long:
ORA-01830: date format picture ends before converting entire input string
Does anyone have a clue how to solve this mess??
Thanks in advance............
T. Blom
Information analyst
tbl@shimano-eu.com
UPDATE XXXXX
SET MSG_TIME_ACK = '01-01-00 9:18:16' , MSG_DATE_ACK = '02-01-02'
WHERE A = 'CON' AND
B IS NULL
This gives an invalid month error, solved by using JAN instead of 01.
However:
UPDATE XXXXX
SET MSG_TIME_ACK = '01-JAN-00 9:18:16' , MSG_DATE_ACK = '02-JAN-02'
WHERE A = 'CON' AND
B IS NULL
results in the stalemate situation that the length of the string is to long:
ORA-01830: date format picture ends before converting entire input string
Does anyone have a clue how to solve this mess??
Thanks in advance............
T. Blom
Information analyst
tbl@shimano-eu.com