Dears
My oracle version is 11.2.0.3
I have a column like below:
201401
201400
201412
I want to change to :
201401 -> 20140101
201400 -> 10140101
201412 -> 20141201
I try this way:
substr(col,5,2) = '00' then
to_date(substr(col,1,4)||'0101'),'yyyymmdd')
else
to_date(col||'01'),'yyyymmdd')
Is any good idea to get better performance?
thx