what is a cursor

Answer Posted / s.syam sundar

oracle uses a private area to process and store data.this
private area is called as cursor

we have two types of cursors
they are implict and explict
implict cursor:- it is a cursor which controlled by oracle
itself
Ex: select statmets,insert,update and delete statmets

explict cursors:- it is a cursor which controlled by
programmer

controlling means
open cursor
fetch into
close cursor

Ex: cursor c1(cursor name) is select * from emp
where deptno =10;( this is in declarative section)


in excutable section:
open cursor c1;
fetch cursor c1 into some veriable or table name;
......
.....
close c1

we can use parameters in cursors

and we can not assiagn cursor name to a variable

and we need not use cursor statemets in for update cursor
because it will take care of

regards
S.syam sundar

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you explain an index?

787


What is the difference between alter trigger and drop trigger statements?

601


what is heap table? : Sql dba

608


Define union, minus, union all, intersect ?

554


Is merge a dml statement?

523






what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

528


Why indexing is needed?

517


Can you have a foreign key without a primary key?

510


How do I run a sql trace?

521


What do you mean by stored procedures? How do we use it?

521


What is the most restrictive isolation level? : Transact sql

555


Is and as keyword in pl sql?

511


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

595


What is raid? How does it help storage of databases?

601


What does rownum mean in sql?

557