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
What is sql entity?
Do triggers have restrictions on the usage of large datatypes, such as long and long raw?
What are keys in sql?
When sql appeared?
Can we create a trigger on view?
What does bitemporal mean?
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
How can a pl sql block be executed?
What is lexical units in pl sql?
Can we call procedure in select statement?
Does sql*plus have a pl/sql engine?
Does a join table need a primary key?
Define implicit and explicit cursors.
What is a record in a database?
Is it important to partition hard disk?