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 is a collection?
What is the latest version of ibm db2?
What is a synonym? How is it used?
What is DB2 (IBM Database 2)?
What is a Cartesian product?
What if we fail to give values in columns declared as NOT NULL ?
What is isolation level in db2?
how can you save the query in QMF?IS IT POSSIBLE OR NOT.IF POSSIBLW HOW?
Can we use select * statement in cobol program without giving field names ???
What is RUNSTATS?
what is the use of commit ? and what is the syntax?
How do you select a row using indexes in db2?