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 |
What are the contents of a dclmgen?
What parameters are used to control the free space in DB2?
What is a collection?
How do I start db2 in windows?
What is buffer pool and list some of them?
What is netezza database?
What is meant by explain?
When will you chose to run RUNSTATS?
How do I create a view in db2?
how to copy the host variables from ps file into cobol program other than include statement
How many Buffer pools are there in DB2 and what are they?
How does a cursor work?