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
Explain the the update statement in sql?
what's the difference between a primary key and a unique key? : Sql dba
What is varchar data type in sql?
how to see the create table statement of an existing table? : Sql dba
How do I view a sql trace file?
Is big data nosql?
which operator is used in query for pattern matching? : Sql dba
Is sql sequential or random?
Is primary key a clustered index?
Explain the working of foreign key?
what is a scheduled jobs or what is a scheduled tasks? : Sql dba
Is trigger a stored procedure?
What is difference between my sql and sql?
What is the difference between having and a where in sql?
how many values can the set function of mysql take? : Sql dba