Hi all,
I am creating one in out procedure. Given below is my code
create or replace procedure sqroot
(
x in out number
)
is
begin
x:= x*x;
end;
declare
a number;
begin
a:= sqroot(4);
end;
I am getting the following error
"Error starting at line : 10 in command -
declare
a number;
begin
a:= sqroot(4);
end;
Error report -
ORA-06550: line 5, column 7:
PLS-00222: no function with name 'SQROOT' exists in this scope
ORA-06550: line 5, column 3:
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action"
Kindly advice