0

I have created 3 types in my db

TYPE ARRAY_MATRICULE_TYPE AS TABLE OF VARCHAR2(255)
TYPE ARRAY_DOCIN_TYPE AS TABLE OF VARCHAR2(255)
TYPE ARRAY_STATUT_TYPE AS TABLE OF VARCHAR2(255)

And I used these types in a procedure:

CREATE OR REPLACE PROCEDURE MYPROCEDURE (
    matricule IN ARRAY_MATRICULE_TYPE, 
    docIn IN ARRAY_DOCIN_TYPE, 
    statut IN ARRAY_STATUT_TYPE) 
IS
   [...]
BEGIN 
    [...]
END; 

I'm struck trying to make a call to this procedure with some parameters to do some tests. Can someone provide some help?

1 Answer 1

1
declare
 p_1  ARRAY_MATRICULE_TYPE := new ARRAY_MATRICULE_TYPE('abc','yxz');
 p_2  ARRAY_DOCIN_TYPE:= new ARRAY_DOCIN_TYPE('abc','yxz');
 p_3  ARRAY_STATUT_TYPE:= new ARRAY_STATUT_TYPE('abc','yxz');
begin

MYPROCEDURE(   matricule => p_1, 
    docIn  => p_2, 
    statut  => p_3);

end;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.