JawwadLone
Programmer
Below the is Oracle procedure:
i m trying to retrieve records by passing column of employee table in "p_query" parameter.problem i m having is that i dont know exactly how to assign the value to cursor in this scenario.
regards
Jawwad
Code:
PROCEDURE proc_BARRACKLookup
(
cur_out OUT cursor_type,
p_query IN varchar2
)
as
sqlstatement varchar2(200):='open cur_out for select '|| p_query ||' from employee';
begin
execute immediate sqlstatement ;
end;
regards
Jawwad