On Jun 9, 11:34 pm, "serik.sharipov" <[email protected]> wrote:
> Heh... TO_DATE function convert NUMBER or CHAR to DATE.
> in my example, the FIRST_DATE column is NUMBER ;)
>
> On 10 июн, 03:58, ddf <[email protected]> wrote:
>
>
>
> > On Jun 8, 4:39 am, "serik.sharipov" <[email protected]> wrote:
>
> > > select to_date(first_date, 'j') from sampletable
>
> > The column is NOT defined as DATE, it's a NUMBER so your solution
> > won't work.  Even if you post it twice.
>
> > David Fitzjarrell- Hide quoted text -
>
> - Show quoted text -

It's still wrong:

SQL>
SQL> --
SQL> -- This simply won't work as BIRTH_DT is far too large
SQL> --
SQL>
SQL> select to_date(birth_dt, 'j') from test;
ERROR:
ORA-01830: date format picture ends before converting entire input
string



no rows selected



David Fitzjarrell

-- 
You received this message because you are subscribed to the Google
Groups "Oracle PL/SQL" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Oracle-PLSQL?hl=en

Reply via email to