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 bit datatype and what's the information that can be stored inside a bit column?

2 Answers  


How can you fix a poorly performing query?

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,


Hi my program is accesing data from two db2 databases.what is the bind card for this program to genarate plan? how to specify the two owners and two qualifiers in bind card

0 Answers   TCS,


A) Which two are benefits of Teradata's support for ANSI Standard SQL? (Choose two.) 1.data is distributed automatically 2.queries get optimized to better plans 3.submit queries from other database systems 4.can interface with BI tools B) Which statement is true when comparing the advantages of third normal form to star schema? 1.Star schema tends to have fewer entities. 2.Star schema requires additional data storage. 3.Third normal form tends to have fewer entities. 4.Third normal form requires additional data storage. C)Which two sets of functions does the Parsing Engine (PE) perform? (Select two.) 1.sorting, formatting, and aggregating of the final answer set 2.flow control of the data to and from the participating tables 3.SQL statement interpretation, syntax validation, and semantic evaluation 4.dispatching the step execution sequence to the AMP via the BYNET D) Which two can be achieved with Teradata Active System Management (TASM)? (Choose two.) 1.disable hardware 2.react to hardware failure 3.influence response times 4.collect metadata E) Which three mechanisms can be used to ensure security within the Teradata Database? (Choose three.) 1.views 2.spool limits 3.roles 4.access rights 5.profiles

0 Answers  






How can you log an error to the server event log from a stored procedure?

0 Answers  


In which table collections errors are stored.

0 Answers  


In which database can extended stored procedures be added?

0 Answers  


How to combine two function together?

0 Answers  


Where is dbms used?

0 Answers  


If a column is an image value type, how you can compare column values? How can you use this column in join clause?

0 Answers  


Explain about relational operator join?

0 Answers  


Categories