I need some help with this query:
update MSG_TRACE set MSG_SENT_STATUS = 'INIT',ERROR_CODE = 0,RETRY_COUNT = 0 where MSG_RECEIVED_TIME >= '16-01-2012 00:00:00,000000' and OPER_TXN_ID like 'CAP%' and MSG_SENT_STATUS in ('FAILED','ERROR');
It gives me this error: ORA-01843: not a valid month
The MSG_RECEIVED_TIME is in the format DD/MM/YYYY HH:MM:SS.mmmmmm
like 16/01/2012 02:46:34.729643 PM
thank you very much in advance
The milliseconds part means it is not a date. You need to cast to a timestamp such as:
If you need it to be a date format then you can cast it further: