What are cursors? Explain different types of cursors?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
Which data type cannot be used as a parameter in a udf?
hi in which phase of mload can i use .FILLER
What is bit datatype and what's the information that can be stored inside a bit column?
To convert IDMS to DB2, how to deal with IDMS occurs and redefined clause?
What are the three basic rules which are to be followed for the relational model of the database?
Explain about the database management systems.
What is the database development process?
What is the system function to get the current user's user id?
The count() function always returns a int value type what should you do if you need to count rows from a query which you know will return a value that is too large for an int value type?
Explain the rollup operator?
How can you log an error to the server event log from a stored procedure?
What is an application role and explain a scenario when you would use one?