what is a cursor

Answer Posted / suriya

Cursor is a mechanism by which we can name a 'select
stataments' and manipulate the information within that.
They are very useful, when we need to run a particular SQL
repeatedly.
Cursors are of 2 types, Implicit and Explicit.
Implicit Cursors: All the select statements we run are
implicitly stored in a cursor, by default. They are defined
by oracle.
Explicit Cursors: This is like user defined cursor. The
user can declare and use a cursor of his own requirement.
The operations performed with a cursor are declaring,
opening,fetching and closing.
Note:Leaving a cursor unclosed, will cause error.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the various privileges that a user can grant to another user?

582


How can you save or place your msg in a table?

523


Is progress software supports to ( pl/sql )?

530


Can we create view in stored procedure?

526


How do I make my sql query run faster?

468






Can two tables have same primary key?

531


What is output spooling in sql*plus?

553


How is a PL/SQL code compiled?

670


What is count * in sql?

554


Which is faster subquery or join?

660


What is sql server and ase?

540


What is a column in a table?

554


What is the sql case statement?

579


What are instead of triggers?

626


How delete a row in sql?

535