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
What is rct?
How to rename a table in DB2 ?
What is ibm db2 client?
Is it possible to create an Instance in DB2 using DB2 Control Center ?
What is db2 purescale?
How do I delete a column in db2?
What are packages in db2?
Explain about rct.
What is meant by dclgen?
What db2 400?
What is the reason behind not using select * in embedded sql programs?
How does db2 sample database connect?
What is the difference between dbm cfg and db cfg file in db2 ?
What are the uses of db2 optimizer?
What is the physical storage length of the data types: date, time, timestamp in the db2 database?