I have an issue with an old application. I tried to update date field with the value 01-JAN-99
but my application crash immediately.
In fact, I saw a strange date value in the table when I get the value with oracle function dump()
:
Typ=12 Len=7: 1,1,1,1,1,1,1
and after I get the value with to_char(t$demi, 'SYYYY/MM/DD HH24:MI:SS')
=> 00000/00/00 00:00:00
.
select
t$demi
,dump (t$demi)
,to_char(t$demi, 'SYYYY/MM/DD HH24:MI:SS')
from
T;
Result:
01-JAN-99 Typ=12 Len=7: 199,199,1,1,1,1,1 9999/01/01 00:00:00
01-JAN-99 Typ=12 Len=7: 1,1,1,1,1,1,1 00000/00/00 00:00:00
How to insert or update this kind of value in a existing table?
UPDATE
statement that crashed. If you got an error message, then post that also. For your information, Oracle'sDATE
data-type uses 7 (seven) bytes of storage. This old Oracle 9i documentation contains an example along with an explanation.