How to return more than one value from a function?
Answer Posted / siva
Create or replace procedure proc(n number,s out sys_refcursor)
is
Begin
open s for select ename from emp where deptno=n;
end:
Var c ref_cursor;
exec proc(10,:c);
print : c;
Clark
King
Miller
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Does view contain data?
What is string data type in sql?
What kind of join is join?
Can we insert in sql function?
How does sql store data?
Can we insert data into view?
What is %type in sql?
Why is a trigger used?
Can we join same table in sql?
How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?
What is coalesce sql?
what is the difference between inner and outer join? Explain with example. : Sql dba
What are the different schemas objects that can be created using pl/sql?
How to check if a column is nullable before setting to nullable?
Which join is like an inner join?