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...

when does the SQL statement gets executed when you use
cursor in the application programming ?

Answer Posted / mna

The process of using cursor is:
1. declare the cursor in working storage: You will write
the SQL query here
2. open the declared cursor : this is when the actual SQL
query is executed and the fetched rows are moved to the
cursor storage.
3. Fetch rows from cursor : Reading rows one by one on the
Cursor just like we read records from a sequential file
4. Close cursor : While fetching if we get an SQLCODE=+100
it is the end of the cursor just like we encounter eof
while reading records from a sequential file. Once this
condition is encountered we will close the cursor.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give a brief description of db2 isolation levels?

1138


How do you simulate the explain of an embedded sql statement in spufi/qmf?

1138


What is a trigger in the db2 database?

1140


What are packages in db2?

1071


When do you specify the isolation level?

1070


What are types of indexes?

1187


How do I import a csv file into db2?

1039


What is db2 command?

1091


What is the latest version of ibm db2?

1333


What are the benefits of using the db2 database?

1287


What is load replace in db2?

1043


How do you stop a db2 database in linux?

1052


How to find the number of rows in a db2 table?

1154


How to check table size in db2 sap?

1094


What is ibm db2 client?

1003