Mailing List
Home
Forum Home
Oracle List - by freelists.org
Oracle on SUSE Linux - Runing Oracle on SUSE Linux
Oracle database error code ...
www.freelists.org
Subjects
ORA 12540: TNS:internal limit restriction exceeded
ORA 12838 please : Is possible to append two times to the same table befo
ORA 12838 please : Is possible to append two times to the same table before
ora 04031
ora 12500 on windows
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 01925: maximum of 30 enabled roles exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ora 12500 on windows
ORA 01650, one idea
ORA 01650
ORA 4030
ORA 12838 please : Is possible to append two times to thesametable before do
ORA 12838 please : Is possible to append two times to thesame table before d
ORA 01536
ORA 03113 end of file on communication channel
ORA 32004: obsolete and/or deprecated parameter(s) specified
ORA 00600:
ORA 00020: maximum number of processes (%s) exceeded
ORA 01925: maximum of 30 enabled roles exceeded
ORA 3113 while creating a cluster database 9201 RAC on Linux with OCFS
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 01650, one idea
ora 12500 on windows
ora 12500 on windows
ora 12500 on windows
ORA 2000 Error Using DBMS STATS GATHER SCHEMA STATS
ORA 01650, one idea
ORA 01650, one idea
ORA 01650, one idea
ORA 01650
ORA 01650
Subject: ora 01031
ORA 4030
ORA 4030
ORA 06502: PL/SQL: numeric or value error: Bulk Bind: Truncated Bind
Subject: Re: ORA 01722 invalid number
 
Subject: RE: Date conversion question

Subject: RE: Date conversion question

2007-10-03       - By Bobak, Mark

 Back
Ok, this shouldn't be too difficult.  I'm not going to give you the complete
answer, but here's a good start:

Here's the setup, using your test data:
SQL> create table date_conv(input_date number(6), ora_date date);

Table created.

SQL> insert into date_conv values(991123,null);

1 row created.

SQL> insert into date_conv values(421,null);

1 row created.

SQL> insert into date_conv values(60823,null);

1 row created.

SQL> insert into date_conv values(0,null);

1 row created.

SQL> insert into date_conv values(70930,null);

1 row created.

SQL> commit;

Commit complete.

Ok, now, check it out, this looks like the input data:

SQL> select * from date_conv;

INPUT_DATE ORA_DATE
-- ---- -- -- ------
   991123
      421
    60823
        0
    70930