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 do you mean by “trigger” in sql?

793


how to include comments in sql statements? : Sql dba

723


Why primary key is required?

717


What is a table?

728


Can there be 2 primary keys in a table?

725






What is equi join in sql?

797


What are all types of user defined functions?

736


What are the set operators in sql?

774


Is there a 64 bit version of ssms?

678


Can we insert data into view?

678


Can function return multiple values in sql?

729


Which join is like an inner join?

716


What are aggregate functions in sql?

838


Define select, insert, create, delete, update, drop keywords

776


What is difference between rank () row_number () and dense_rank () in sql?

802