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
How are functions and procedures called in PL/SQL?
How do I run a query in pl sql developer?
What is database migration?
Explain the the delete statements in sql?
what is the difference between join and union? : Sql dba
What is cross join sql?
Explain the select statement in sql?
What is AUTH_ID and AUTH_USER in pl/sql ?
what are string data types? : Sql dba
what are the non-standard sql commands supported by 'mysql'? : Sql dba
Explain two easy sql optimizations.
What is crud stand for?
Which join is default?
give the syntax of grant and revoke commands? : Sql dba
What does the sign mean in sql?