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
Can a trigger call a stored procedure?
How do we use distinct statement? What is its use?
What is trigger in sql? Explain
how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc
How do I count duplicates in sql?
Which tcp/ip port does sql server run?
What are the two different parts of the pl/sql packages?
Why do we create views in sql?
What is a Mapplet?
What is a clob in sql?
How can you tell the difference between an index and a view?
How does a trigger work?
How do I start sql from command line?
What are pl sql procedures?
What are the parameter modes supported by pl/sql?