What is the use of cursor ? how cursor allocate context area for executing the sql statement?

Answer Posted / sowmya

Hi
cursors allow row -by-row processing of the resultsets
Types of cursors are: static,dynamic,
forward-only,keyset-driven,

disadvantages of cursors are : each time you fetch a row
from the cursor,it results in a network roundtrip,where are
as normal select query makes only one round trip
cursors are costly as they need temparory storage.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a sql query to convert all character to uppercase after hypen.

966


Explain the the update statement in sql?

575


How to connect a sql*plus session to an oracle server?

624


What is the difference between truncate and drop statements?

581


what are enums used for in mysql? : Sql dba

612






What are tables and fields in the database?

555


What is a stored procedure in sql with example?

606


What are the different types of dbmss?

563


What is the difference between delete and truncate statement in sql?

500


Is sql harder than python?

612


What is the difference between the conventional and direct path loads? : aql loader

696


how can we find the number of rows in a table using mysql? : Sql dba

587


What does fetching a cursor do?

619


Can we use two order by clause in query?

547


Which is faster count (*) or count 1?

544