what is the syntax for FOR UPDATE CLAUSE in cursor
declaration and how can u update using cursor? is it
possible to update multiple rows at a time.
Answer Posted / vaneesh khurana
EXEC SQL
DECLARE STUDENT-CSR CURSOR
SLECT NAME, CLASS, MARKS, STATUS
FROM STUDENT-TABLE
WHERE ROLL-NO = :WS-ROLL-NO
FOR UPDATE OF STATUS
END-EXEC
EXEC SQL
UPDATE STUDENT-TABLE SET STATUS =:WS-STATUS
WHERE CURRENT OF STUDENT-CSR
END-EXEC
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Which component is responsible for db2 startup and shutdown?
For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.
What is the difference between spufi and qmf?
Mention data types used in db2 ?
What are union and union all?
Explain packages.
What is data manager?
How do I add a column to a table in db2?
What is meant by union and union all?
What is the maximum No of rows per page?
Is db2 a database?
What is db2 and what is the use of db2 optimizer?
What is release/acquire in bind?
What's The Percentage Free Space ?
in my project..TEST is db2 8.1 version In PROD it is 7.1 if i do REORG in TEST.. can I use the same REORG jcl with out modification in PROD region (this is DB2 8.1 )? if not, what modification i need to do in my REORG control card?