Someone knows why Oracle 7.3.4 show me this error:
The following error has occurred:
ORA-06550: line 5, column 19:
PLS-00905: object ES344.P_INI is invalid
ORA-06550: line 5, column 3:
PL/SQL: Statement ignored
When I execute the next function:
create or replace function es344.p_ini
(
ncia number,
init date
)
return number is
per number;
begin
begin
select bp.period into per
from devcbs.b_periods bp
where bp.cia = ncia
and bp.init_date = init;
exception when no_data_found
per := 0;
end;
return (per);
end p_ini;
The following error has occurred:
ORA-06550: line 5, column 19:
PLS-00905: object ES344.P_INI is invalid
ORA-06550: line 5, column 3:
PL/SQL: Statement ignored
When I execute the next function:
create or replace function es344.p_ini
(
ncia number,
init date
)
return number is
per number;
begin
begin
select bp.period into per
from devcbs.b_periods bp
where bp.cia = ncia
and bp.init_date = init;
exception when no_data_found
per := 0;
end;
return (per);
end p_ini;