I am getting with the call of store procedure ORA-00900 error. My code is:
Calling:
execute pkg_titularitalia.insertar(1,12,'123','123', 123, null);
Store Procedure:
PROCEDURE Insertar(pIdUsuarioSeg IN number,
pIdTitular IN OUT number,
pPartitaIVA IN OUT varchar,
pCodigoIS IN OUT varchar,
pIdUsuarioModificacion IN OUT number,
pFechamodificacion IN OUT date) AS
BEGIN
DBMS_OUTPUT.PUT_LINE('aa');
END;
If I test in console I see the result in DBMS console but when I am executing in code is giving me the error ORA-00900 invalid statment
what is it wrong?
I changed the call for
declare
a number := 5643;
b varchar := '123';
c varchar := '';
d number := 5643;
e date;
begin
-- Call the procedure
execute insertar(1, a, b, c, d, e);
end;
as everybody suggested, is giving me yet ORA-06550
====================================================================================
SOLUTION (I GOT IT)
declare
a number := 5643;
b varchar(13) := '123';
c varchar(39) := '';
d number := 5643;
e date;
begin
-- Call the procedure
execute insertar(1, a, b, c, d, e);
end;
006550 was giving me for the length of the varchar in the declare section of begin/end block