How to define the data items to receive the fetch items for
the SQL?

Answers were Sorted based on User's Feedback



How to define the data items to receive the fetch items for the SQL?..

Answer / 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

How to define the data items to receive the fetch items for the SQL?..

Answer / sadiq afroze

Using the DSECT, followed by lines of - 'data items DS
datatype'.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More DB2 Interview Questions

what is the differences between spufi and qmf and which is better?

4 Answers   Accenture, Cap Gemini,


What if , we failed to mentioed null indicator in sql select query , that may retrieve null value ?

2 Answers   Cap Gemini,


What does the RUNSTATS Utility do?

4 Answers  


What are data types?

2 Answers  


What is UNION,UNION ALL?

2 Answers  






How do you eliminate duplicate values in db2?

0 Answers  


Consider that a package is bound into 2 different collections and the PKLIST option specifies both the collections. If the collection id is not specified in the program while executing the SQL query, then when the DB2 system will search the package list, which collection will it pick up or will it give an error/abend?

1 Answers  


How to execute stored procedures?

0 Answers  


Could anyone clearly explain the diference between sub query and correlated sub query?

3 Answers  


Explain about open switch business continuity software?

0 Answers  


When is the skeleton cursor table created?

1 Answers  


How would the varchar column remarks defined?

0 Answers  


Categories