Show data from a Type record
Hello everybody, I created two packages: PA et PB. In the second package (PB), i don't know how to make a loop in order to show data of the record. Can you take a look on my code please? Thank you. CREATE OR REPLACE PACKAGE PA IS TYPE TypRecAnciens IS record ( NoAncien EG_ANCIENS.NO_ANCIEN%TYPE, NomMem EG_ANCIENS.NOM_MEM%TYPE, PrenomMem EG_ANCIENS.PRENOM_MEM%TYPE ); PROCEDURE AvoirListeAnciens( pi_RecAncien OUT TypRecAnciens ); END PA; CREATE OR REPLACE PACKAGE BODY PA IS PROCEDURE AvoirListeAnciens ( pi_RecAncien OUT TypRecAnciens ) IS CURSOR cursorAnciens IS SELECT NO_ANCIEN, NOM_MEM, PRENOM_MEM FROM EG_ANCIENS; BEGIN OPEN cursorAnciens; LOOP FETCH cursorAnciens INTO pi_RecAncien; END LOOP; END AvoirListeAnciens; END PA; CREATE OR REPLACE PACKAGE PB IS PROCEDURE ListerAnciens(pi_RecListAncien ancienslist.typ_rec_anciens); END PB; CREATE OR REPLACE PACKAGE BODY PB IS PROCEDURE ListerAnciens(pi_RecListAncien ancienslist.typ_rec_anciens) IS BEGIN END ListerAnciens; END PB;