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

Why do we use cursor?

1099


What is the purpose of using commit?

1098


How do I delete a table in db2?

1070


Are views updateable?

1153


can we view the access paths created by dbrm ? how ? thx

7093


What is the use of commit in db2?

1077


What do you mean by commit and rollback?

1039


What is a db2 cursor?

1055


What is sqlca’s maximum length?

1183


How does db2 sample database connect?

1027


What is the cobol picture clause of the db2 data types date, time, timestamp?

1066


What's The Percentage Free Space ?

1224


How do you stop a db2 database in linux?

1012


What is the physical storage length of the data types date, time, and timestamp?

1086


How to check last update on table in db2?

1059