What are cursors? Explain different types of cursors?

Answers were Sorted based on User's Feedback



What are cursors? Explain different types of cursors?..

Answer / preethi

Cursors are work areas used for internal processing in
order toexecute an SQL statement.

Two tpes of Cursors
Implicit Cursors and Explicit Cursors.
Explicit Cursors can be further classifed into three
Named Cursors,Parameterized Cursors and Ref Cursors

Is This Answer Correct ?    28 Yes 8 No

What are cursors? Explain different types of cursors?..

Answer / ramesh

Implicit Cursors --Occurs on behalf of every sql statement
Explicit Cursors --Named Cursors used in Plsql
Paramaeteried Cursors --Pass Paramters to a Named Cursor


Cheers,
Ramesh

Is This Answer Correct ?    17 Yes 6 No

What are cursors? Explain different types of cursors?..

Answer / daudkhan

A point to context area which has infromation for Oracle to
process SQL statements.
Cursors allow to fetch rows returned by a select statement.

Implicit cursor: Automatically declared
Explicit cursor: defined by programmer

Is This Answer Correct ?    14 Yes 4 No

What are cursors? Explain different types of cursors?..

Answer / banoj swain

cursor is nothing but a pointer pointing to the context area assigned by oracle for processing of sql statement.pl/sql programs control context area by using cursor.
types:1)static 2)dynamic or ref cursor
again static is of two types
1)explicit 2)implicit
dynamic of two types:
1)strong 2)weak

Is This Answer Correct ?    9 Yes 4 No

What are cursors? Explain different types of cursors?..

Answer / siva

cursor is nothing but buffer area it is process by multiple records and also record by record process.
they are two types
1.implicit cursor:- it is returned only single value.(it is created by default system )
2.explicit cursor:- it is returned multiple values.( it is created by user).

Is This Answer Correct ?    0 Yes 0 No

What are cursors? Explain different types of cursors?..

Answer / vishnuvardhan reddy

in db2 there are two types of cursors
1.scrolable cursor
2.non scrolable cursor

scrolable cursor:
scrolable cursor can be moved in sequential
forword (or)backword direction in the resultant table.

Non scrolable cursor:
simplest cursor is the non scrolable cursor
it is always moved in a sequential direction.

Is This Answer Correct ?    2 Yes 10 No

Post New Answer

More DB Development Interview Questions

What is the physical representation for a many-to-many relationship?

0 Answers  


what is Normalization?

6 Answers   TCS,


How can you fix a poorly performing query?

0 Answers  


What is the maximum length of an extended property?

0 Answers  


Explain about the hierarchical model of the database?

0 Answers  






Explain the role of indexing in databases?

0 Answers  


I have a few records all are same structures data, I want to store data in multiple targets how

0 Answers   CTR, Infosys, Polaris,


What are defaults? Is there a column to which a default can't be bound?

2 Answers  


Explain about a primary key?

0 Answers  


I HAVE A PI ON COL A THE NEXT DAY I WANT CHANGE THE PI ON COL B? PLS SEND ME THE ANS

0 Answers   IBM,


How to combine two function together?

0 Answers  


Explain the process of the user request and data generating?

0 Answers  


Categories