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 are synonyms in sql?
What is sql partition?
what is 'mysqldump'? : Sql dba
What is bulk compiling in pl/sql.?
what is oltp (online transaction processing)? : Sql dba
How to change the order of columns in Oracle SQL Plus ?
Why partition by is used in sql?
what is the difference between join and union? : Sql dba
How do you truncate?
What is the size of partition table?
What is spool?
How do you create a unique index?
What does joining a thread mean?
What kind of join is join?
What is bind variable in pl sql?