Ref Cursor Problem
I have a refcursor out parameter in my procedure, what I'm trying to do is to declare a cursor to get all people(person ids) that use this email, then open the cursor, pass each person id into another select statement to get the detail infomation of the person. I want to get the detail information of all people out. Please see my procedure in the following.
Why the p_results refcursor only returns the last person's detail infor, not all people's detail infor? How can I get all people's detailed information out? Thank you very much,
PROCEDURE TestGet (