我在Toad,Oracle中测试此代码。它给了我一个错误“结束:一个无效的标识符”。有人可以帮我弄清楚我哪里出错了。?
SELECT
NVL(PACE_HR.F_GET_INSTR_CRHRS(18,
case
when to_char(to_date(&&payroll_date),'MM') >= 09
then to_char(to_date(&&payroll_date),'YYYY')||'70'
else to_char(to_number(to_char(to_date(&&payroll_date),'YYYY')) - 1) || '70'
end),0)
as fall_instr_crhrs,
nvl(pace_hr.f_get_non_instr_crhrs(18,
case
when to_char(to_date(&&payroll_date),'MM') >= 09
then to_char(to_date(&&payroll_date),'YYYY')||'70'
else to_char(to_number(to_char(to_date(&&payroll_date),'YYYY')) - 1) || '70'
end),0),
end as fall_non_instr_crhrs
FROM DUAL
答案 0 :(得分:2)
这条线在做什么?
end as fall_non_instr_crhrs
尝试:
SELECT
NVL(PACE_HR.F_GET_INSTR_CRHRS(18,
case
when to_char(to_date(&&payroll_date),'MM') >= 09
then to_char(to_date(&&payroll_date),'YYYY')||'70'
else to_char(to_number(to_char(to_date(&&payroll_date),'YYYY')) - 1) || '70'
end),0)
as fall_instr_crhrs,
nvl(pace_hr.f_get_non_instr_crhrs(18,
case
when to_char(to_date(&&payroll_date),'MM') >= 09
then to_char(to_date(&&payroll_date),'YYYY')||'70'
else to_char(to_number(to_char(to_date(&&payroll_date),'YYYY')) - 1) || '70'
end),0) as fall_non_instr_crhrs
FROM DUAL