I am trying to update a date column ina table with following query and i get this error
"ORA-01841:(full) year must be between -4713 and +9999, and not be 0."
please help,
This ecpression (and all the simmilar you are using) is wrong because you are forcing oracle to use implicit conversion from date to char, which results in unpredictable results and errors in your case. The problem is the following piece:
Code:
trunc(rk_date) || ' 8:00:00 AM'
the first part of the expression results in DATE datatype and if you perform a concatenation on it it must be first converted to CHAR type. So what you realy need is:
hi jmodic thanks for the help,
i tried to execute the query by modifying it,
i removed trunc an di used to_char but it still give sme some errors..
can u please modify the query that originally posted and paste it.
Originally posted by r_adusumil can u please modify the query that originally posted and paste it.
Doubtful. He already gave you the solution. The owness is now on you to implement it correctly. If your new statement gives an error, then post your new statement so we can see what went wrong.
Thanks for the message JMODIC
Thanks Every one,
it worked...the equal to sign error occured coz of some missing paranthesis,
i was expecting it was some other weird errors but its not..
thank you..
Bookmarks