update with to_char function
423371Mar 4 2005 — edited Mar 4 2005Guys
I have this update DML statement
update testdate
set to_char(deeddate, 'mm/dd') = to_char(birthdate, 'mm/dd')
where did = 1
What I am trying to do is replace only the 'mm/dd' part of the birthdate with deeddate's 'mm/dd', while I dont want to change '/yyyy hh:mm:ss' part of birthdate.
But I get an error as ORA-00927
Please suggest me if you any better way of writing the DML statement.
Thanks