Got it guys, below the code....


Create or relplace funcion (pvar t_rec)
return pak.cursor
as
pkddetails pak.cursor;
Mempid varchar2(1000);
begin
memp:='select * from emp where empid IN (';
for i in 1..pvar.count loop
mempid:=mempid||''''||pvar (i)||''''||',' ;
end loop;
mempid:= substr(mempid,1,(length(mempid) -1));
mempid:= mempid || ')';
open pkddetails for
mempid;
return pkddetail ;
end;
/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Oracle PL/SQL" group.
To post to this group, send email to Oracle-PLSQL@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Oracle-PLSQL?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to