Types of cursors and explanation each of them ?

Answers were Sorted based on User's Feedback



Types of cursors and explanation each of them ?..

Answer / sohail

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.
2.explicit cursor:As a name user has to explicitly
create,open and close cursors.
3. ref cursor: Reference cursor is a datatype which holds
the value of a cursor.

Is This Answer Correct ?    8 Yes 4 No

Types of cursors and explanation each of them ?..

Answer / anusha

Cursor is a private work area .there are
three types if cursors
1.implicit cursor: implicit cursors is create,open and
closed by system automatically.
2.explicit cursor: explicitly user can create,open and close
cursors.
3. ref cursor: Reference cursor is a cursor dynamically (at
Run time) we can pass the column names or table names.

Is This Answer Correct ?    1 Yes 0 No

Types of cursors and explanation each of them ?..

Answer / 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

Types of cursors and explanation each of them ?..

Answer / aditya

Ref cursor have two types strong ref cursor and weak ref cursor.

declaring a ref cursor and using it for multiple select statements is a weak cursor.

using a ref cursor as an out parameter to get a result set is a strong ref cursor.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

define primary key & secondary key?

2 Answers  


what are ddl statements in mysql? : Sql dba

0 Answers  


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

0 Answers  


What is NOCOPY?

6 Answers   DELL,


What are different types of functions in sql?

0 Answers  






What does stand for in sql?

0 Answers  


What is sql in java?

0 Answers  


TABLE A TABLE B EMPNO ENAME EMPNO ENAME 1 A 1 A 2 B 2 B 3 C 3 C 4 D 4 D 5 E 5 E 6 F 7 G HOW TO GET THE UNMATCHED RECORDS IN SQL QUERY?

10 Answers   Satyam,


i want count no of values in a column i.e enam eempno phoneno x 1 (98765,09887,096561,87964579,156678,678900876) that means if i select phone no from table i want to get total count of phone numbers i.e 6

8 Answers   Satyam,


What is sql used for?

0 Answers  


What is integrity constraints?

5 Answers   Ramco, Satyam,


How do I run sql?

0 Answers  


Categories