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
What are the commands used in sql?
What are the basic techniques of indexing?
Can we join 3 tables in sql?
What are pl sql procedures?
Is pl sql different from sql?
Explain normalization and what are the advantages of it?
What is the difference between sql and t sql?
What are dml commands?
How do I access sql anywhere database?
Explain autonomous transaction.
Mention what is the use of function "module procedure" in pl/sql?
What is the difference between mdf and ndf files?
How do I find duplicates in the same column?
Why we use triggers in mysql?
What is partition by in sql?