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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which component is responsible for db2 startup and shutdown?

818


How do I add a column to an existing table in db2?

793


What is cursor stability in db2?

1064


What is the use of commit in db2?

829


What is null indicator in cobol db2?

798


What is runstats utility in db2?

771


What is meant by explain?

865


What is rct?

991


Explain about rct.

865


What is the use of reorg in db2?

835


Explain the benefits you can get from mainframe connect?

739


How to find the number of rows in a db2 table?

862


Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

2917


How do I delete a column in db2?

872


How to take backup of table in db2?

824