帮我看下下面程序,运行报错:ORA-01840:输入值对日期格式不够长 (错误的地方已经用红色标出)
唉。。。
怎么改啊?
create table t_temp
(
infopubldate,
enddate )
as select
to_date(to_char(al.f_disclosure_date)||' 00:00:00','yyyy/mm/dd hh24:mi:ss') as infopubldate,
to_date((to_char(al.f_fiscal_year)
|| decode (substr(to_char(al.f_fiscal_quarter),-1,1), '1','0331', '3','0630', '5' ,'0930', '9','1231')) ,'yyyymmdd')
as enddate
from company.t_account_latest al
order by f_account_id;
------解决方案--------------------
你的是oracle语法,来错地方了