select '>'||to_char(t$invd,'YYYY')||'<', to_char(t$invd,'DD.MM.YYYY'),t$invd,sysdate from baandb.TTDSLS045550 where rownum < 2 and t$orno=41;
'>'||T TO_CHAR(T$ T$INVD SYSDATE
------ ---------- --------- ---------
>0000< 00.00.0000 01-JAN-99 03-MAY-02
It seems to me function to_char does not return correct result or may be I do not understand somethink?
field t$invd has DATE format.
Oracle 8.1.6, SUN, Solaris.
SQL> desc TTDSLS045550;
Name Null? Type
----------------------------------------- -------- ----------
.........
T$DINO NOT NULL NUMBER
T$INVD NOT NULL DATE
T$INVN NOT NULL NUMBER
......
----------------------------------------------------------
select T$INVD, to_char(T$INVD,'dd.mm.yyyy'), to_char(sysdate,'dd.mm.yyyy') from TTDSLS045550 wh ....
SQL> /
T$INVD TO_CHAR(T$ TO_CHAR(SY
--------- ---------- ----------
01-JAN-99 00.00.0000 03.05.2002
------------------------------------------------
1* select T$INVD, to_date(to_char(T$INVD,'dd.mm.yyyy'),'dd.mm.yyyy') from TTDSLS045550 where rownu
SQL> /
select T$INVD, to_date(to_char(T$INVD,'dd.mm.yyyy'),'dd.mm.yyyy') from TTDSLS045550 where rownum < 2
*
ERROR at line 1:
ORA-01847: day of month must be between 1 and last day of month
-----------------------------------------------
May be the way I got that table can tell you something:
1) Export from Oracle 7.3 (WinNt),
2) Import to Oracle 8.1.5 (NT)
3) Export from 8.1.5 (NT)
4) Import to 8.1.6 (SUN)
During all steps I did not recieve any error messages.
Thank you very much.
Bookmarks