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 the difference between functions, procedures, and packages in pl/sql?
what are the type of locks ? : Sql dba
Why indexing is needed?
What are different joins used in sql?
Can we debug stored procedure?
What is the need of a partition key?
What is localdb mssqllocaldb?
How do I audit the sql sent to the server?
Explain clause in sql?
How do you concatenate in sql?
What is the use of primary key?
When can we use the where clause and the having clause?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
what are local and global variables and their differences? : Sql dba
What is compound trigger?