Answer Posted / cyril mathew
A REF CURSOR is basically a data type. A variable created
based on such a data type is generally called a cursor
variable. A cursor variable can be associated with
different queries at run-time.
type r_cursor is REF CURSOR;
c_emp r_cursor;
en emp.ename%type;
begin
open c_emp for select ename from emp;
loop
fetch c_emp into en;
exit when c_emp%notfound;
dbms_output.put_line(en);
end loop;
close c_emp;
end;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are file in oracle.
In support project one ticket alloted which steps follows manualy tell me ?
Are you familiar with internet architecture of oracle apps 11i?
What is sca and how is it useful?
Can you differentiate between mediator and osb?
how can i print random rows in plsql table
What do you understand by concurrent programs?
Tell me how to debug the report?
What is the concept of soa governance?
what are the prerequisites for costing transactions?
can we use look up type instead of a pofile option?or valueset?is it possible how?
pls send me out bound code of supplers,site,bankiformation code pls as soon as
Can we create tables in apps schema?
can we get profile values in report without using user exists is it possible how?
What do you understand by soa and what are the benefits of using this architecture?