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
How can you classify the locks in db2?
How do you find the maximum value in a column in db2?
Name the lockable units in DB2?
What is consistency token in db2?
What is reorg and runstats in db2?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
Can we delete records from view?
How do I delete a table in database?
What is release/acquire in bind?
What is null indicator in cobol db2?
What is the advantage in De-normalizing tables in DB2?
Define declaration generator (dclgen).
Why db2 is called db2?
What is the difference between db2 and oracle?
Is db2 a mainframe database?