I have a stored procedure like
create procedure Sample(sid out number,sname out varchar2) is
begin
select id,name into sid,sname from emp;
end;
My result should be like
id name
------------
1 Sai
5 Hari
8 Nari
I am not able to get above array type of result how can I able to get it (without ref_cursor and with ref_cursor) ?
“without ref_cursor and with ref_cursor” is a bit confusing. without and with?
but your outputs, if your disallowing a REF CURSOR , have to be array outputs.
eg:
create these types:
then:
or better, as a pipelined function:
EDIT with scalar arrays: