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

What are expressions?

571


What is break?

632


Is it possible to link two groups inside a cross products after the cross products group has been created?

606


What is a string data type in sql?

525


What is inner join in sql?

590






Why is sql*loader direct path so fast?

607


What will you get by the cursor attribute sql%notfound?

601


What does plv msg allows you to do?

693


what is cross join? : Sql dba

580


What is sql deadlock?

575


What are different types of functions in sql?

515


What's the difference between inner join and left join?

523


what are the different functions in sorting an array? : Sql dba

591


what is blob? : Sql dba

568


How to create a menu in sqlplus or pl/sql?

618