Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: update year in date column
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;
-- 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
![]() |
![]() |