Hi All,
I want to excute one of two select query based on codition that I Have to get its value from database ,So I have to write a procedure
that get value from database then loop through condtion to decide which select statement will excute,the problem that is the time I will write procedure
So I need a help
I try with this
CREATE OR REPLACE procedure GetTransferRequest(StartIndex number, EndIndex number,cursor_rs out SYS_REFCURSOR)
is
cursor M is select TRANSFERTYP from EMPTRANSFER ;
begin
OPEN cursor_rs FOR
for F in M loop
if F.TRANSFERTYP=0 then
select statement
else
otherselect statement
end if ;
end loop;
end GetTransferRequest;
Please help me ASAP
khalid