How to define the data items to receive the fetch items for
the SQL?
Answer Posted / mehdee
Example:
EXEC SQL
FETCH AA_CURS
INTO :Host-name1, Host-name2, ...
EXEC-END
Note: Host-names listed are one to one related to the
Columns at DECLARE AA_CURS, and are INCLUDEed from it's
DB2 DECLGEN name in the program.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between drop table and delete table?
How to run db2 command in windows?
What is collection in db2 bind?
What is copy pending and check pending in db2?
Before you give the explain statement, what are the prerogatives?
What is image copy in db2?
Explain various types of locks in db2?
What is the use of dclgen in db2?
What is meant by explain?
run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...
What is a system catalog table in db2?
What are foreign keys in db2?
What is the syntax for FETCH in DB2 ?
How can you do the explain of a dynamic sql statement?
How does a cursor work?