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
How do you find the maximum value in a column in db2?
How does db2 sample database connect?
What is a cursor in programming?
What is the physical storage length of the data types date, time, and timestamp?
What is db2?
Why select is not preferred in embedded sql programs?
Can we insert update delete in view?
How to run db2 command in windows?
What action db2 takes when a program aborts in the middle of a transaction?
Explain correlated sub-queries.
How to check table size in db2 sap?
is it compulsory commitment control in journal?
What is the difference between nvl and coalesce?
What is meant by union and union all?
How do I change the column size in db2?