Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the use of cursors?

Answer Posted / bala

If the query inside the program retrieves only one row, there is no need to CURSOR.
If the program has to process the multiple rows that are retrieved by the query,
CURSOR is needed. Because, host variables can accommodate data from only one row at a time. By Declaring the cursor, multiple rows can be fetched one at a time and assign it to host variables for processing.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create db2 table in mainframe?

1096


Is it possible using max on a char column?

1079


Can one database have multiple instances?

1003


What are the rules for db2 programming?

1038


Outputs of explain are with matchcols = 0. What does this signify?

988


What is schema in db2?

959


What do you mean by rollback?

932


What is a collection in db2?

978


Define check constraint.

1023


What is buffer pool?

1026


What is dbrm?

1046


What is the maximum size of a char data type in db2?

958


Can you use max on a char column?

1026


What is reorg and runstats in db2?

1142


What is the difference between db2 and oracle?

1065