Suppose if I need to update a column, how you do that using
cursor?
Answers were Sorted based on User's Feedback
Answer / bobby
continuation of previous answer,
after cursor declaration, open the cursor and fetch the cursor. When the condition for update is satisified isue EXEC SQL UPDATE CURRENT OF.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / sandy
EXEC SQL DECLARE X CURSOR FOR
SELECT * FROM ABC
FOR UPDATE OF <COLUMN> ==>If we know the column we would
like to update.
| Is This Answer Correct ? | 4 Yes | 0 No |
how can u nderstand the sql stmts executed successfully or not ?
How to resolve -805 error in DB2?
How are write I/Os from the buffer pool executed?
What are PACKAGES ?
What is db2 catalog database?
What db2 400?
Is it possible to precompile if db2 goes down?
Is ibm db2 free?
What is temporal table in db2?
How to find the maximum value in a column in the db2 database?
what is datacom db?
What os does db2 run on?