When run this query
select devcbs.p_ini(bell.cia, trunc(bell.INIT_DATE)) prueba
from es344.b_empl_line_log bell
CREATE OR REPLACE function p_ini
(
ncia number,
init date
)
return number is
per number;
begin
select bp.period into per
from devcbs.b_periods bp
where bp.cia = ncia
and bp.init_date = to_date(init,'DD/MM/YYYY');
return (per);
end p_ini;
--------------------------------------------------
/
Show me this error:
The following error has occurred:
ORA-01858: a non-numeric character was found where a numeric was expected
ORA-06512: at "DEVCBS.P_INI", line 17
ORA-06512: at line 1
I do not know what is the problem please help me I desesperate
Thanks in advance
select devcbs.p_ini(bell.cia, trunc(bell.INIT_DATE)) prueba
from es344.b_empl_line_log bell
CREATE OR REPLACE function p_ini
(
ncia number,
init date
)
return number is
per number;
begin
select bp.period into per
from devcbs.b_periods bp
where bp.cia = ncia
and bp.init_date = to_date(init,'DD/MM/YYYY');
return (per);
end p_ini;
--------------------------------------------------
/
Show me this error:
The following error has occurred:
ORA-01858: a non-numeric character was found where a numeric was expected
ORA-06512: at "DEVCBS.P_INI", line 17
ORA-06512: at line 1
I do not know what is the problem please help me I desesperate
Thanks in advance