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 total syntax for fetch ? can any one please give
me all the details of fetch ? thx

Answer Posted / sree

YES THE ABOVE SYNTAX IS CORRECT

IF THERE ARE MORE THAN ONE HOSTVARIABLES,IE IF THERE ARE
MORE COLUMNS IN THE DB2 TABLE

SYNTAX IS

EXEC SQL
FETCH CURSORNAME INTO :HOSTVARIABLE1 ,
:HOSTVARIABLE2 ,
---
---
:HOSTVARIABLEN
END-EXEC

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the contents of dclgen?

1054


How do I optimize a query in db2?

1042


How do you eliminate duplicate values in db2?

1110


How do I connect my db2 database to ibm?

988


How to find schema of a table in db2?

953


What is dclgen (declaration generator)?

1012


What is commit in db2?

998


What is the syntax for FETCH in DB2 ?

1141


How can you count the number of rows from a table tab?

1043


What is cascading rollback?

1135


define clustering index.

980


What are the uses of db2 optimizer?

1229


Explain correlated sub-queries.

979


Explain how can you do the explain of a dynamic sql statement?

1066


What is ibm db2 client?

883