Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: update year in date column

Re: update year in date column

From: Tim Johnston <tjohnston_at_quallaby.com>
Date: Tue, 23 Mar 2004 16:28:53 -0500
Message-ID: <4060AC15.40203@quallaby.com>


Barbara Baker wrote:

>SQL>
>SQL> select
>to_date(to_char(crdate,'ddmmyyyy')-1000),'MM/DD/YYYY')
> 2 from customer where cusno=798489;
>select
>to_date(to_char(crdate,'ddmmyyyy')-1000),'MM/DD/YYYY')
>
> *
>ERROR at line 1:
>ORA-00923: FROM keyword not found where expected
>
>
>
>

It looks like your statement is formatted incorrectly... Count the ('s and )'s

select to_date*(*to_char*(*crdate,'ddmmyyyy'*)*-1000*)*,'MM/DD/YYYY'*)*   from customer where cusno=798489;



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Tue Mar 23 2004 - 16:34:25 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US