Suppose if I need to update a column, how you do that using
cursor?

Answers were Sorted based on User's Feedback



Suppose if I need to update a column, how you do that using cursor?..

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

Suppose if I need to update a column, how you do that using cursor?..

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

Post New Answer

More DB2 Interview Questions

What are the contents of a dclmgen?

0 Answers  


What parameters are used to control the free space in DB2?

0 Answers  


What is a collection?

3 Answers  


How do I start db2 in windows?

0 Answers  


What is buffer pool and list some of them?

0 Answers  


What is netezza database?

0 Answers  


What is meant by explain?

0 Answers  


When will you chose to run RUNSTATS?

1 Answers  


How do I create a view in db2?

0 Answers  


how to copy the host variables from ps file into cobol program other than include statement

1 Answers   Syntel,


How many Buffer pools are there in DB2 and what are they?

1 Answers   IBM,


How does a cursor work?

0 Answers  


Categories