Answer Posted / shaveta gulati
Ref Cursor:
ref cursor is a data structure which points to an object
which in turn points to the memory location.
ex:
create or replace procedure test()
as
begin
type ref_cursor is ref cursor;
open ref_cursor as
select * from table_name;
end;
There are 2 types in this.
1.strong ref cursor:
This has a return type defined.
2. weak ref cursor.
this doesnt have a return type
normal cursor:
Nothing but the named memory location.
it has 2 types
1. explicit cursor
Need to be defined whenever required.
2.Implicit cursor
need not defined and used by oracle implicitly in DML
operation.
In case of an normal explict cursor, the SQL query has to
be defined at the time of declaring the cursor itself. In
case of REF Cursor, the cursor declartion is not associated
with any SQL query, it is associated with a query at a
later stage this brings in a lot of flexibility as
different SQL queries can be associated with the cursor
(one at a time, offcourse) programatically. REF Cursors
also provide the feature of passing parameters. Though
there is something dynamic with REF Cursor when compared to
a normal explicit cursor, it is not a truly perfect dynamic
cursor. Truly perfect dynamic cursors are the one
constructed using DBMS_SQL package.
Is This Answer Correct ? | 42 Yes | 7 No |
Post New Answer View All Answers
What is a value set? List its various types.
Are you familiar with internet architecture of oracle apps 11i?
List of all the modules under Manufacturing, Finance and Distribution in oracle applications?
Hi any one plz help me .i need 2 or 3 customized and 2 or 3 development reports on PO module..if any body having plz send me with one by one step ,i mean where u do the customization and wht are the steps u follwed when u do the customization,wht are fields u added or deleted ,How u added or these fields as per clinet requirement and wht are errors u faced .plz send it to my mail id iamvenki@gmail.com
List the types of flexfield?
What is oracle soa suite and what are its different components?
Hi Friends this is preetham, i am searching for job on oracle apps(technical) i put 3 years fake exp, so any one please could you help me for realtime interview questions and 9739782164 this is my no srpsrp777@gmail.Com please guys please provide your no for contact i have a doubts i want to clarify
How to create a purchase order without a requisition?
Tell me how to find the custom directory in front end?
Can you explain the difference between architecture followed in 10g & 11g?
Which oracle applications pl/sql standard apis you are familiar, have you used most of them?
Tell me how to debug the report?
where to define interorganization transaction charges and what are the different options?
Can you define an erp system?
is it possible to run the interface without using oracle apps?