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: create cursor c1(cursor name) as 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 ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does subquery mean in sql?

527


Which are the different types of indexes in sql?

549


What is trigger and how to use it in sql?

529


What is a mutating table and a constraining table?

560


how to create a new view in mysql? : Sql dba

484






Do foreign keys improve performance?

534


what is clause? : Sql dba

565


What is a crud api?

488


what is the difference between a web-garden and a web-farm? : Sql dba

545


What is the starting oracle error number? What is meant by forward declaration in functions?

530


What is column?

541


What is the use of count (*) in sql?

532


Can 2 queries be executed simultaneously in a distributed database system?

633


What are the parameter modes supported by pl/sql?

521


What is sql constant?

496