Types of cursors and explanation each of them ?

Answer Posted / giri

Cursor is a pointer or handler to context area.there are
three types if cursors
1.implicit cursor: Every SQL statment between begin and end
are implicit cursors.sql%found,sql%notfound,sql%is open,sql%count these are the implicit cursor attributes.
2.explicit cursor:As a name user has to explicitly
create,open and close cursors.%found,%notfound,%is open,%count these are the explicit cursor attributes.
3. ref cursor: Reference cursor is a datatype which holds
the value of a cursor.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mutating error in pl sql?

555


What is primary key and foreign key with example?

500


How to run sql commands in sql*plus?

591


If a cursor is open, how can we find in a pl/sql block?

681


What is the difference between local variables and global variables?

618






Which one is better subquery or joins?

560


what is the difference between inner and outer join? Explain with example. : Sql dba

555


Why do you partition data?

538


How do I know if I have sql express or standard?

608


What is primary key secondary key alternate key candidate key?

548


Is sql better than excel?

519


What is a table?

569


What is scope of pl sql developer in future?

595


What is optimistic concurrency control? : Transact sql

553


What is the difference between join and natural join?

479