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
What is trigger types in sql?
what is timestamp in mysql? : Sql dba
How do you sort in sql?
What are stored procedures in mysql?
What is union and union all keyword in sql and what are their differences?
What will you get by the cursor attribute sql%notfound?
how to get @@error and @@rowcount at the same time? : Sql dba
Cite the differences between execution of triggers and stored procedures?
What is the difference between alter trigger and drop trigger statements?
explain the difference between myisam static and myisam dynamic. : Sql dba
What is execution plan in sql?
Is inner join faster than left join?
What is the difference between syntax error and runtime error?
What does dml mean?
what is a foreign key ? : Sql dba