I have some types in Oracle.
create or replace
TYPE r_telefone_cand AS OBJECT (
candidato NUMBER(10,0),
telefone VARCHAR2(15)
);
create or replace TYPE t_telefone_cand AS TABLE OF r_telefone_cand;
create or replace
TYPE r_candidato AS OBJECT (
codigo NUMBER(10,0),
rg VARCHAR2(15),
cpf NUMBER(15,0),
nome VARCHAR2(50),
telefone t_telefone_cand,
);
And I have a procedure insert_candidato that parameter candidato is IN r_candidato
create or replace
PROCEDURE insert_candidato(
candidato IN r_candidato
) AS ...
But I don't know how to pass the parameter candidato with the collection telefone.
Please, help me.